<template>
    <div class="publishGood-container">
        <IHeader class="header" back="true" title="商品发布"></IHeader>
        <scroller class="infomation-content">
            <div class="basic-infomation">
                <div class="info-list">
                    <div class="info-cell flex_row item-height">
                        <Label content="商品标题"></Label>
                        <div class="handleChoose flex_row">
                            <text class="choose-word col_868686">{{'(' + goodsName.length + '/45)'}}</text>
                        </div>
                    </div>
                    <div class="titleInput border-bottom-ebebeb">
                        <input type="text" class="info-cell flex_row ipt" maxlength="45" v-model="goodsName" placeholder="请输入商品标题">
                    </div>
                </div>
                <div class="info-list">
                    <div class="info-cell flex_row border-bottom-ebebeb" style="padding-top: 16px;padding-bottom: 16px;">
                        <Label content="主图"></Label>
                        <image v-if="topPicture" class="topPicture" resize="contain" :src="topPicture" @click="handleUploadToppicture"></image>
                        <Uploader @doclick="handleUploadToppicture" v-if="!topPicture"></Uploader>
                        <!--<div class="handleChoose flex_row inputWrap">-->
                        <!--</div>-->
                    </div>
                </div>
                <!--<div class="info-list">-->
                    <!--<div class="info-cell flex_row item-height border-bottom-ebebeb">-->
                        <!--<Label content="商品编号" class="marLeft" :notnecessary="true"></Label>-->
                        <!--<div class="handleChoose flex_row inputWrap">-->
                            <!--<input type="text" class="shuru" placeholder="请输入" v-model="goodsNo">-->
                        <!--</div>-->
                    <!--</div>-->
                <!--</div>-->
                <div class="info-list">
                    <div class="info-cell flex_row item-height border-bottom-ebebeb">
                        <Label content="商品价格"></Label>
                        <div class="handleChoose flex_row inputWrap">
                            <input type="text" class="shuru" placeholder="请输入(商品实际出售的价格)" v-model="actulprice">
                            <!--<text v-if="priceUnit !== '请选择单位'" >{{'/' + priceUnit }}</text>-->
                        </div>
                    </div>
                </div>
                <div class="info-list">
                    <div class="info-cell flex_row item-height border-bottom-ebebeb">
                        <Label content="折扣价格"></Label>
                        <div class="handleChoose flex_row inputWrap">
                            <input type="text" class="shuru" placeholder="请输入折扣价格" v-model="discountPrice">
                            <!--<text v-if="priceUnit !== '请选择单位'">{{'/' + priceUnit }}</text>-->
                        </div>
                    </div>
                </div>
                <div class="info-list">
                    <div class="info-cell flex_row item-height border-bottom-ebebeb">
                        <Label content="货币单位平台默认为人民币￥(元)" notnecessary="true"></Label>
                    </div>
                </div>
                <div class="info-list">
                    <div class="info-cell flex_row item-height border-bottom-ebebeb" @click="handleSelectPriceUnit">
                        <Label content="商品数量单位"></Label>
                        <div class="handleChoose flex_row">
                            <text class="choose-word col_868686">{{priceUnit}}</text>
                            <image class="arrow_right_small" :src="imgPath('arrow_right_small.png')"></image>
                        </div>
                    </div>
                </div>
                <div class="info-list">
                    <div class="info-cell flex_row item-height border-bottom-ebebeb">
                        <Label content="商品库存"></Label>
                        <div class="handleChoose flex_row inputWrap">
                            <input type="number" class="shuru" placeholder="请输入商品库存" v-model="kucun">
                        </div>
                    </div>
                </div>
                <div class="info-list">
                    <div class="info-cell flex_row item-height border-bottom-ebebeb" @click="handleSelectType">
                        <Label content="商品类目"></Label>
                        <div class="handleChoose flex_row">
                            <text class="choose-word col_868686">{{companyType}}</text>
                            <image class="arrow_right_small" :src="imgPath('arrow_right_small.png')"></image>
                        </div>
                    </div>
                </div>
                <div class="info-list" v-if="buLiaoShow">
                    <div class="info-cell flex_row item-height border-bottom-ebebeb" @click="handleSelectBuliaoType">
                        <Label content="布料类型"></Label>
                        <div class="handleChoose flex_row">
                            <text class="choose-word col_868686">{{buliaoType}}</text>
                            <image class="arrow_right_small" :src="imgPath('arrow_right_small.png')"></image>
                        </div>
                    </div>
                </div>
                <div class="info-list">
                    <div class="info-cell flex_row item-height border-bottom-ebebeb" @click="handleSelectChildredType">
                        <Label content="商品子类目"></Label>
                        <div class="handleChoose flex_row">
                            <text class="choose-word col_868686">{{childrenType}}</text>
                            <image class="arrow_right_small" :src="imgPath('arrow_right_small.png')"></image>
                        </div>
                    </div>
                </div>
                <div class="info-list">
                    <div class="info-cell flex_row item-height border-bottom-ebebeb" @click="guigeSetting">
                        <Label content="商品设置参数"></Label>
                        <div class="handleChoose flex_row">
                            <text class="choose-word col_868686">{{guigeText}}</text>
                            <image class="arrow_right_small" :src="imgPath('arrow_right_small.png')"></image>
                        </div>
                    </div>
                </div>
                <div class="info-list" v-if="gongchangdizhi">
                    <div class="info-cell flex_row item-height border-bottom-ebebeb">
                        <Label content="工厂地址"></Label>
                        <div class="handleChoose flex_row inputWrap">
                            <input type="text" class="shuru" placeholder="请输入工厂地址" v-model="address">
                        </div>
                    </div>
                </div>
                <div class="info-list" v-if="canshushezhi">
                    <div class="info-cell flex_row item-height border-bottom-ebebeb" @click="canshuSetting">
                        <Label content="商品规格设置" class="marLeft" :notnecessary="true"></Label>
                        <div class="handleChoose flex_row">
                            <text class="choose-word col_868686">请查看</text>
                            <image class="arrow_right_small" :src="imgPath('arrow_right_small.png')"></image>
                        </div>
                    </div>
                </div>
                <!--<div class="info-list">-->
                    <!--<div class="info-cell flex_row item-height ">-->
                        <!--<Label content="商品详情描述" class="marLeft" :notnecessary="true"></Label>-->
                    <!--</div>-->
                <!--</div>-->
                <!--<div class="special ">-->
                    <!--<textarea name="" v-model="detail" class="specialContent detaiCon" id="" cols="30" rows="8" placeholder='请输入'></textarea>-->
                    <!--<text class="num" v-if="detail">{{detail.length}}/500</text>-->
                    <!--<text class="num" v-if="!detail">0/500</text>-->
                <!--</div>-->
                <div class="info-list">
                    <div class="info-cell no-single">
                        <div class="flex_row shangchuan" >
                            <Label content="图片上传"></Label>
                            <Question @doclick="handleRealSceneTip"></Question>
                        </div>
                        <text class="realSceneTip" v-if="realSceneTip">图片最多上3传张，格式以png、jpg的形式上传，大小不超过3M</text>
                        <div class="image-container flex_row">
                            <div class="image-box" v-if="imageObj.length > 0" :class="[(index % 3 === 2) ? '' : 'margin_right_12']" v-for="(item, index) in imageObj" :key="index">
                                <image class="scene-image" :src="item"></image>
                                <image class="delete-image" :src="imgPath('image_delete.png')" @click="handleDeleteImage(index)"></image>
                            </div>
                            <Uploader @doclick="handleUploadImage()" v-if="imageObj.length < 10"></Uploader>
                            <!--<div class="image-content flex_row">-->
                            <!--</div>-->
                        </div>
                    </div>
                </div>
                <div class="confirm-btn" @click="publishGood">
                    <text class="btn">立即发布</text>
                </div>
            </div>
        </scroller>
        <!--商品类目弹框-->
        <wxc-popup popup-color="#fff" :show="typeSelectPriceUnitShow" @wxcPopupOverlayClicked="closePriceUnitShowDialog" pos="right">
            <div class="dialog-content">
                <IHeader class="header" back="true" close="true" title="价格单位选择" @closeDialog="closePriceUnitShowDialog"></IHeader>
                <list class="enterprise-list">
                    <cell class="enterprise-item" @click="choosePriceUnit(item)" v-for="(item, index) in priceUnitList" :key="index">
                        <text class="enterprise-name item-height col_464646" :class="[(index === priceUnitList.length - 1) ? '' : 'border-bottom-cecece']">{{item.description}}</text>
                    </cell>
                </list>
            </div>
        </wxc-popup>
        <!--商品类目弹框-->
        <wxc-popup popup-color="#fff" :show="typeSelectShow" @wxcPopupOverlayClicked="closeTypeDialog" pos="right">
            <div class="dialog-content">
                <IHeader class="header" back="true" close="true" title="商品类目类型" @closeDialog="closeTypeDialog"></IHeader>
                <list class="enterprise-list">
                <cell class="enterprise-item" @click="chooseLeiMu(item)" v-for="(item, index) in GoodLeiMuList" :key="index">
                <text class="enterprise-name item-height col_464646" :class="[(index === GoodLeiMuList.length - 1) ? '' : 'border-bottom-cecece']">{{item.value}}</text>
                </cell>
            </list>
            </div>
        </wxc-popup>
        <!--布料选择-->
        <wxc-popup popup-color="#fff" :show="typeBuLiaoSelectShow" @wxcPopupOverlayClicked="closeBuLiaoTypeDialog" pos="right">
            <div class="dialog-content">
                <IHeader class="header" back="true" close="true" title="布料类型" @closeDialog="closeBuLiaoTypeDialog"></IHeader>
                <list class="enterprise-list">
                    <cell class="enterprise-item" @click="chooseBuLiao(item)" v-for="(item, index) in buLiaoList" :key="index">
                        <text class="enterprise-name item-height col_464646" :class="[(index === buLiaoList.length - 1) ? '' : 'border-bottom-cecece']">{{item.value}}</text>
                    </cell>
                </list>
            </div>
        </wxc-popup>
        <!--商品子类型-->
        <wxc-popup popup-color="#fff" :show="typeChildrenSelectShow"
                   @wxcPopupOverlayClicked="closeChildrenTypeDialog" pos="right">
            <div class="dialog-content">
                <IHeader class="header" back="true" close="true" title="商品子类目" @closeDialog="closeChildrenTypeDialog"></IHeader>
                <list class="enterprise-list">
                    <cell class="enterprise-item" @click="chooseChildren(item)" v-for="(item, index) in goodChildList" :key="index">
                        <text class="enterprise-name item-height col_464646" :class="[(index === goodChildList.length - 1) ? '' : 'border-bottom-cecece']">{{item.value}}</text>
                    </cell>
                </list>
            </div>
        </wxc-popup>
        <!--参数设置-->
        <wxc-popup popup-color="#fff" :show="guigeSettingShow" ref="wxcPopup" @wxcPopupOverlayClicked="closeGuiGeDialog" pos="right">
            <div class="dialog-content">
                <IHeader class="header" back="true" close="true" title="商品参数" @closeDialog="closeGuiGeDialog"></IHeader>
                <scroller class="wrapContent">
                    <div class="wrap">
                        <div class="info-list">
                            <div class="info-cell flex_row item-height border-bottom-ebebeb">
                                <Label content="商品货号" :notnecessary="true" class="marLeft"></Label>
                                <div class="handleChoose flex_row inputWrap">
                                    <input type="text" class="shuru" placeholder="请输入" v-model="artNo">
                                </div>
                            </div>
                        </div>
                        <div class="info-list" v-if="bianzhigongyi">
                            <div class="info-cell flex_row item-height border-bottom-ebebeb">
                                <Label content="编织工艺"></Label>
                                <div class="handleChoose flex_row inputWrap radioWrap">
                                    <Radio class="radioItem" :class="[index !== 0 ? 'margin_left_50' : '']" v-for="(item, index) in radioList" :key="index" @doclick="handleHasLicense(item)" :check="businessLicenseType === item.value" :word="item.description"></Radio>
                                </div>
                            </div>
                        </div>
                        <div class="info-list" v-if="cicun">
                            <div class="info-cell flex_row item-height border-bottom-ebebeb">
                                <Label content="拉头工艺"></Label>
                                <div class="handleChoose flex_row inputWrap">
                                    <input type="text" class="shuru" placeholder="请输入（如：电镀、挂漆）" v-model="sliderProcessData">
                                </div>
                            </div>
                        </div>
                        <div class="info-list" v-if="shengchangongyi">
                            <div class="info-cell flex_row item-height border-bottom-ebebeb">
                                <Label content="生产工艺"></Label>
                                <div class="handleChoose flex_row inputWrap">
                                    <input type="text" class="shuru" placeholder="请输入（如：压膜）" v-model="productionProcess">
                                </div>
                            </div>
                        </div>
                        <div class="info-list">
                            <div class="info-cell flex_row item-height border-bottom-ebebeb" @click="goodFenLei">
                                <Label content="商品分类"></Label>
                                <div class="handleChoose flex_row inputWrap radioWrap">
                                    <text class="choose-word col_868686">{{goodFenLeiText}}</text>
                                    <image class="arrow_right_small" :src="imgPath('arrow_right_small.png')"></image>
                                </div>
                            </div>
                        </div>
                        <div class="info-list" @click="goodType"  v-if="leibieShow">
                            <div class="info-cell flex_row item-height border-bottom-ebebeb" >
                                <Label content="商品类别" ></Label>
                                <div class="handleChoose flex_row inputWrap radioWrap">
                                    <text class="choose-word col_868686">{{goodtypeText}}</text>
                                    <image class="arrow_right_small" :src="imgPath('arrow_right_small.png')"></image>
                                </div>
                            </div>
                        </div>
                        <div class="info-list" v-if="leibieShow && otherleibieShow">
                            <div class="info-cell flex_row item-height border-bottom-ebebeb">
                                <Label content="其它商品类别"></Label>
                                <div class="handleChoose flex_row inputWrap">
                                    <input type="text" class="shuru" placeholder="请输入" v-model="otherLeibie">
                                </div>
                            </div>
                        </div>
                        <div class="info-list">
                            <div class="info-cell flex_row item-height border-bottom-ebebeb" @click="chooseColor">
                                <Label content="商品色系"></Label>
                                <div class="handleChoose flex_row inputWrap radioWrap">
                                    <text class="choose-word col_868686">{{colortypeText}}</text>
                                    <image class="arrow_right_small" :src="imgPath('arrow_right_small.png')"></image>
                                </div>
                            </div>
                        </div>
                        <div class="info-list" v-if="qitayanse">
                            <div class="info-cell flex_row item-height border-bottom-ebebeb">
                                <Label content="其它颜色"></Label>
                                <div class="handleChoose flex_row inputWrap">
                                    <input type="text" class="shuru" placeholder="请输入" v-model="otherColorChoose">
                                </div>
                            </div>
                        </div>
                        <div class="info-list" v-if="hanjiaoliang">
                            <div class="info-cell flex_row item-height border-bottom-ebebeb">
                                <Label content="含胶量" :notnecessary="true" class="marLeft"></Label>
                                <div class="handleChoose flex_row inputWrap">
                                    <input type="text" class="shuru" placeholder="请输入" v-model="rubberContent">
                                </div>
                            </div>
                        </div>
                        <!--规格型号-->
                        <div class="info-list" v-if="guigexinghao">
                            <div class="info-cell flex_row item-height border-bottom-ebebeb">
                                <Label content="规格型号"></Label>
                                <div class="handleChoose flex_row inputWrap radioWrap">
                                    <input type="text" class="shuru" placeholder="请输入" v-model="specificationModel">
                                </div>
                            </div>
                        </div>
                        <!--宽度-->
                        <div class="info-list" v-if="widthzhanshi">
                            <div class="info-cell flex_row item-height border-bottom-ebebeb">
                                <Label content="宽度（mm）" :notnecessary="true" class="marLeft"></Label>
                                <div class="handleChoose flex_row inputWrap radioWrap">
                                    <input type="text" class="shuru" placeholder="请输入" v-model="xuanzewidth">
                                </div>
                            </div>
                        </div>
                        <!--厚度-->
                        <div class="info-list" v-if="hanjiaoliang">
                            <div class="info-cell flex_row item-height border-bottom-ebebeb">
                                <Label content="厚度（mm）" :notnecessary="true" class="marLeft"></Label>
                                <div class="handleChoose flex_row inputWrap radioWrap">
                                    <input type="text" class="shuru" placeholder="请输入" v-model="thickness">
                                </div>
                            </div>
                        </div>
                        <!--其他参数-->
                        <div class="info-list" v-if="qitacanshu">
                            <div class="info-cell flex_row item-height border-bottom-ebebeb">
                                <Label content="其它参数" :notnecessary="true" class="marLeft"></Label>
                                <div class="handleChoose flex_row inputWrap radioWrap">
                                    <input type="text" class="shuru" placeholder="请输入" v-model="otherParam">
                                </div>
                            </div>
                        </div>
                        <!--花高-->
                        <div class="info-list" v-if="huagao">
                            <div class="info-cell flex_row item-height border-bottom-ebebeb">
                                <Label content="花高" :notnecessary="true" class="marLeft" ></Label>
                                <div class="handleChoose flex_row inputWrap radioWrap">
                                    <input type="text" class="shuru" placeholder="请输入" v-model="flowerHigh">
                                </div>
                            </div>
                        </div>
                        <!--贴布材质-->
                        <div class="info-list" v-if="tiebucaizhi">
                            <div class="info-cell flex_row item-height border-bottom-ebebeb">
                                <Label content="贴布材质"></Label>
                                <div class="handleChoose flex_row inputWrap radioWrap">
                                    <input type="text" class="shuru" placeholder="请输入（如：100%涤纶）" v-model="patchMaterial">
                                </div>
                            </div>
                        </div>
                        <!--规格尺寸-->
                        <div class="info-list" v-if="guigeShow">
                            <div class="info-cell flex_row item-height border-bottom-ebebeb">
                                <Label content="规格尺寸" :notnecessary="true" class="marLeft" ></Label>
                                <div class="handleChoose flex_row inputWrap radioWrap">
                                    <input type="text" class="shuru" placeholder="请输入" v-model="choosesize">
                                </div>
                            </div>
                        </div>
                        <!--尺寸-->
                        <div class="info-list" v-if="laliancicun">
                            <div class="info-cell flex_row item-height border-bottom-ebebeb">
                                <Label content="尺寸" :notnecessary="true" class="marLeft" ></Label>
                                <div class="handleChoose flex_row inputWrap radioWrap">
                                    <input type="text" class="shuru" placeholder="请输入如:3#,5#,8#" v-model="laLianCiCunContent">
                                </div>
                            </div>
                        </div>
                        <!--材质-->
                        <div class="info-list" v-if="caizhi">
                            <div class="info-cell flex_row item-height border-bottom-ebebeb" @click="caiZhiType">
                                <Label content="材质" ></Label>
                                <div class="handleChoose flex_row inputWrap radioWrap">
                                    <text class="choose-word col_868686">{{caiZhiText}}</text>
                                    <image class="arrow_right_small" :src="imgPath('arrow_right_small.png')"></image>
                                </div>
                            </div>
                        </div>
                        <!--花型尺寸-->
                        <div class="info-list" v-if="yinHua">
                            <div class="info-cell flex_row item-height border-bottom-ebebeb">
                                <Label content="花型尺寸" :notnecessary="true" class="marLeft" ></Label>
                                <div class="handleChoose flex_row inputWrap radioWrap">
                                    <input type="text" class="shuru" placeholder="请输入（如40*50）" v-model="flowerSize">
                                </div>
                            </div>
                        </div>
                        <!--光泽度-->
                        <div class="info-list" v-if="guangzedu">
                            <div class="info-cell flex_row item-height border-bottom-ebebeb" @click="chooseLight">
                                <Label content="光泽度"></Label>
                                <div class="handleChoose flex_row inputWrap radioWrap">
                                    <text class="choose-word col_868686">{{lightText}}</text>
                                    <image class="arrow_right_small" :src="imgPath('arrow_right_small.png')"></image>
                                </div>
                            </div>
                        </div>
                        <!--原料纱织-->
                        <div class="info-list" v-if="mianliaoShow">
                            <div class="info-cell flex_row item-height border-bottom-ebebeb" @click="chooseYuanLiao">
                                <Label content="原料纱支"></Label>
                                <div class="handleChoose flex_row inputWrap radioWrap">
                                    <text class="choose-word col_868686">{{yuanLiaoText}}</text>
                                    <image class="arrow_right_small" :src="imgPath('arrow_right_small.png')"></image>
                                </div>
                            </div>
                        </div>
                        <div class="info-list" v-if="otherRawYarn">
                            <div class="info-cell flex_row item-height border-bottom-ebebeb">
                                <Label content="其它原料纱支" :notnecessary="true" class="marLeft"></Label>
                                <div class="handleChoose flex_row inputWrap">
                                    <input type="text" class="shuru" placeholder="请输入" v-model="otherYarn">
                                </div>
                            </div>
                        </div>
                        <!--潘通色号-->
                        <div class="info-list" v-if="pantongsehao">
                            <div class="info-cell flex_row item-height border-bottom-ebebeb">
                                <Label content="潘通色号" :notnecessary="true" class="marLeft" ></Label>
                                <div class="handleChoose flex_row inputWrap radioWrap">
                                    <input type="text" class="shuru" placeholder="请输入" v-model="pantoneNum">
                                </div>
                            </div>
                        </div>
                        <!--克重-->
                        <div class="info-list" v-if="kezhong">
                            <div class="info-cell flex_row item-height border-bottom-ebebeb">
                                <Label content="克重(g/㎡)" :notnecessary="true" class="marLeft" ></Label>
                                <div class="handleChoose flex_row inputWrap radioWrap">
                                    <input type="text" class="shuru" placeholder="请输入克重" v-model="weightNum">
                                </div>
                            </div>
                        </div>
                        <!--宽幅-->
                        <div class="info-list" v-if="fukuan">
                            <div class="info-cell flex_row item-height border-bottom-ebebeb">
                                <Label content="幅宽（cm）" :notnecessary="true" class="marLeft" ></Label>
                                <div class="handleChoose flex_row inputWrap radioWrap">
                                    <input type="text" class="shuru" placeholder="请输入" v-model="breadth">
                                </div>
                            </div>
                        </div>
                        <!--成分比例-->
                        <div class="info-list" v-if="chengbenbiliShow">
                            <div class="info-cell flex_row item-height border-bottom-ebebeb">
                                <Label content="成分比例" :notnecessary="true" class="marLeft" ></Label>
                                <div class="handleChoose flex_row inputWrap radioWrap">
                                    <input type="text" class="shuru" placeholder="请输入（如尼龙20%，氨纶80%）" v-model="componentProportionData">
                                </div>
                            </div>
                        </div>
                        <!--弹力程度-->
                        <div class="info-list" v-if="tanxingShow">
                            <div class="info-cell flex_row item-height border-bottom-ebebeb" @click="chooseChengFen">
                                <Label content="弹力程度" ></Label>
                                <div class="handleChoose flex_row inputWrap radioWrap">
                                    <text class="choose-word col_868686">{{chengFenText}}</text>
                                    <image class="arrow_right_small" :src="imgPath('arrow_right_small.png')"></image>
                                </div>
                            </div>
                        </div>
                        <!--包装材质-->
                        <div class="info-list" v-if="baoZhuang">
                            <div class="info-cell flex_row item-height border-bottom-ebebeb" @click="chooseBaoZhuang">
                                <Label content="材质" ></Label>
                                <div class="handleChoose flex_row inputWrap radioWrap">
                                    <text class="choose-word col_868686">{{baozhuangText}}</text>
                                    <image class="arrow_right_small" :src="imgPath('arrow_right_small.png')"></image>
                                </div>
                            </div>
                        </div>
                        <!--宽度分类-->
                        <div class="info-list" v-if="widthType">
                            <div class="info-cell flex_row item-height border-bottom-ebebeb" @click="chooseWidth">
                                <Label content="宽度分类"></Label>
                                <div class="handleChoose flex_row inputWrap radioWrap">
                                    <text class="choose-word col_868686">{{widthText}}</text>
                                    <image class="arrow_right_small" :src="imgPath('arrow_right_small.png')"></image>
                                </div>
                            </div>
                        </div>
                        <!--杯型厚度-->
                        <div class="info-list" v-if="shengchangongyi">
                            <div class="info-cell flex_row item-height border-bottom-ebebeb" @click="chooseBeiXing">
                                <Label content="杯型厚度"></Label>
                                <div class="handleChoose flex_row inputWrap radioWrap">
                                    <text class="choose-word col_868686">{{beiXingText}}</text>
                                    <image class="arrow_right_small" :src="imgPath('arrow_right_small.png')"></image>
                                </div>
                            </div>
                        </div>
                        <!--现货情况-->
                        <div class="info-list">
                            <div class="info-cell flex_row item-height border-bottom-ebebeb">
                                <Label content="现货情况" :notnecessary="true" class="marLeft"></Label>
                                <div class="handleChoose flex_row inputWrap">
                                    <Radio class="radioItem" :class="[index !== 0 ? 'margin_left_50' : '']" v-for="(item, index) in xianHuoRadioList" :key="index" @doclick="handleXianHuo(item)" :check="xianHuoType === item.type" :word="item.name"></Radio>
                                </div>
                            </div>
                        </div>
                        <!--描述信息-->
                        <div class="info-list">
                            <div class="info-cell flex_row item-height">
                                <Label content="描述信息" :notnecessary="true" class="marLeft"></Label>
                            </div>
                        </div>
                        <div class="special">
                            <textarea class="describeInfo" rows="5" v-model="describeInfo" maxlength="300"></textarea>
                        </div>
                        <div class="info-list">
                            <div class="info-cell flex_row item-height">
                                <Label content="特别说明" class="marLeft"></Label>
                            </div>
                        </div>
                        <div class="special">
                            <div class="specialContent">
                                <text class="specialText">1、商品价格受原材料和市场趋势影响，最终成交价格以买卖双方确认后的价格为准；</text>
                                <text class="specialText">2、图片与实际颜色会有误差，以收到货物的实际颜色为准；</text>
                                <text class="specialText">3、门幅和克重在指定范围内会有差异；</text>
                            </div>
                        </div>
                        <div class="confirm-btn" @click="shutUp">
                            <text class="btn">确认</text>
                        </div>
                    </div>
                </scroller>
            </div>
        </wxc-popup>
        <!--商品分类-->
        <wxc-popup popup-color="#fff" :show="GoodsTypeShow" ref="wxcPopup" @wxcPopupOverlayClicked="closeGoodsDialog" pos="right">
            <div class="dialog-content">
                <IHeader class="header" back="true" close="true" title="商品分类" @closeDialog="closeGoodsDialog"></IHeader>
                <list class="enterprise-list border-bottom-cecece">
                    <cell class="enterprise-item" @click="chooseGoodType(item)" v-for="(item, index) in suSheShangPinList" :key="index">
                        <text class="enterprise-name item-height col_464646" :class="[(index === suSheShangPinList.length - 1) ? '' : 'border-bottom-cecece']">{{item.description}}</text>
                    </cell>
                </list>
            </div>
        </wxc-popup>
        <!--商品类别-->
        <wxc-popup popup-color="#fff" :show="GoodSelectShow" ref="wxcPopup" @wxcPopupOverlayClicked="closeGoodTypeDialog" pos="right" >
            <div class="dialog-content">
                <IHeader class="header" back="true" close="true" title="商品类别" @closeDialog="closeGoodTypeDialog"></IHeader>
                <list class="enterprise-list ">
                    <cell class="enterprise-item border-bottom-cecece" @click="chooseGoodFenLei(item)" v-for="(item, index) in goodTypeList" :key="index">
                        <text class="enterprise-name item-height col_464646" :class="[(index === goodTypeList.length - 1) ? '' : 'border-bottom-cecece']">{{item.description}}</text>
                    </cell>
                </list>
            </div>
        </wxc-popup>
        <!--商品色系-->
        <wxc-popup popup-color="#fff" :show="ColorTypeShow" @wxcPopupOverlayClicked="closeColorDialog" pos="right">
            <div class="dialog-content">
                <IHeader class="header" back="true" close="true" title="商品色系" @closeDialog="closeColorDialog"></IHeader>
                <list class="enterprise-list border-bottom-cecece">
                    <cell class="enterprise-item" @click="chooseColorItem(item)" v-for="(item, index) in colorList" :key="index">
                        <text class="enterprise-name item-height col_464646" :class="[(index === colorList.length - 1) ? '' : 'border-bottom-cecece']">{{item.description}}</text>
                    </cell>
                </list>
            </div>
        </wxc-popup>
        <!--光泽度-->
        <wxc-popup popup-color="#fff" :show="lightTypeShow" @wxcPopupOverlayClicked="closelightDialog" pos="right">
            <div class="dialog-content">
                <IHeader class="header" back="true" close="true" title="光泽度类别" @closeDialog="closelightDialog"></IHeader>
                <list class="enterprise-list border-bottom-cecece">
                    <cell class="enterprise-item" @click="chooseLightType(item)" v-for="(item, index) in glossinessList" :key="index">
                        <text class="enterprise-name item-height col_464646" :class="[(index === glossinessList.length - 1) ? '' : 'border-bottom-cecece']">{{item.description}}</text>
                    </cell>
                </list>
            </div>
        </wxc-popup>
        <!--原料纱织-->
        <wxc-popup popup-color="#fff" :show="YuanliaoShow" ref="wxcPopup" @wxcPopupOverlayClicked="closeYuanliaoDialog" pos="right">
            <div class="dialog-content">
                <IHeader class="header" back="true" close="true" title="原料纱支类别"  @closeDialog="closeYuanliaoDialog"></IHeader>
                <list class="enterprise-list border-bottom-cecece">
                    <cell class="enterprise-item border-bottom-cecece" @click="chooseRawYarnType(item)" v-for="(item, index) in rawYarnList" :key="index">
                        <text class="enterprise-name item-height col_464646" :class="[(index === rawYarnList.length - 1) ? '' : 'border-bottom-cecece']">{{item.description}}</text>
                    </cell>
                </list>
            </div>
        </wxc-popup>
        <!--成分-->
        <wxc-popup popup-color="#fff" :show="chengFenShow" ref="wxcPopup"
                   @wxcPopupOverlayClicked="closeChengFenDialog" pos="right">
            <div class="dialog-content">
                <IHeader class="header" back="true" close="true" title="弹力程度"  @closeDialog="closeChengFenDialog"></IHeader>
                <list class="enterprise-list border-bottom-cecece">
                    <cell class="enterprise-item" @click="chooseComponent(item)" v-for="(item, index) in componentProportionList" :key="index">
                        <text class="enterprise-name item-height col_464646" :class="[(index === componentProportionList.length - 1) ? '' : 'border-bottom-cecece']">{{item.description}}</text>
                    </cell>
                </list>
            </div>
        </wxc-popup>
        <!--规格设置-->
        <wxc-popup popup-color="#fff" :show="canshuShow" ref="wxcPopup" @wxcPopupOverlayClicked="closeCanshuDialog" pos="right">
            <div class="dialog-content">
                <IHeader class="header" back="true" close="true" title="规格设置" @closeDialog="closeCanshuDialog"></IHeader>
                <div class="canshuCon">
                    <div class="canshuItem">
                        <text class="canshuTitle">订购类型</text>
                        <div class="con">
                            <text class="context">1.现货</text>
                            <text class="context">2.定制：详细定制信息请于下单后备注</text>
                        </div>
                    </div>
                    <div class="canshuItem">
                        <text class="canshuTitle">商品类型</text>
                        <div class="con">
                            <text class="context">1.样品</text>
                            <text class="context">2.大货</text>
                        </div>
                    </div>
                </div>
            </div>
        </wxc-popup>
        <!--包装材料-->
        <wxc-popup popup-color="#fff" :show="baozhuangShow" ref="wxcPopup" @wxcPopupOverlayClicked="closebaozhuangDialog" pos="right">
            <div class="dialog-content">
                <IHeader class="header" back="true" close="true" title="包装材质" @closeDialog="closebaozhuangDialog"></IHeader>
                <list class="enterprise-list">
                    <cell class="enterprise-item" @click="chooseBaozhuangCaizhi(item)" v-for="(item, index) in baozhuangList" :key="index">
                        <text class="enterprise-name item-height col_464646" :class="[(index === baozhuangList.length - 1) ? '' : 'border-bottom-cecece']">{{item.description}}</text>
                    </cell>
                </list>
            </div>
        </wxc-popup>
        <!--宽度分类-->
        <wxc-popup popup-color="#fff" :show="widthShow" @wxcPopupOverlayClicked="closeWidthDialog" pos="right">
            <div class="dialog-content">
                <IHeader class="header" back="true" close="true" title="宽度分类" @closeDialog="closeWidthDialog"></IHeader>
                <list class="enterprise-list">
                    <cell class="enterprise-item" @click="chooseWidthType(item)" v-for="(item, index) in widthClassList" :key="index">
                        <text class="enterprise-name item-height col_464646" :class="[(index === widthClassList.length - 1) ? '' : 'border-bottom-cecece']">{{item.description}}</text>
                    </cell>
                </list>
            </div>
        </wxc-popup>
        <!--材质分类-->
        <wxc-popup popup-color="#fff" :show="caiZhiShow" @wxcPopupOverlayClicked="closeCaiZhi" pos="right">
            <div class="dialog-content">
                <IHeader class="header" back="true" close="true" title="材质分类" @closeDialog="closeCaiZhi"></IHeader>
                <list class="enterprise-list">
                    <cell class="enterprise-item" @click="chooseMaterialType(item)" v-for="(item, index) in materialList" :key="index">
                        <text class="enterprise-name item-height col_464646" :class="[(index === materialList.length - 1) ? '' : 'border-bottom-cecece']">{{item.description}}</text>
                    </cell>
                </list>
            </div>
        </wxc-popup>
        <!--杯型-->
        <wxc-popup popup-color="#fff" :show="beiXingShow" @wxcPopupOverlayClicked="closebeiXing" pos="right">
            <div class="dialog-content">
                <IHeader class="header" back="true" close="true" title="杯型厚度" @closeDialog="closebeiXing"></IHeader>
                <list class="enterprise-list border-bottom-cecece">
                    <cell class="enterprise-item" @click="chooseBeiXingType(item)" v-for="(item, index) in beiXingList" :key="index">
                        <text class="enterprise-name item-height col_464646" :class="[(index === beiXingList.length - 1) ? '' : 'border-bottom-cecece']">{{item.description}}</text>
                    </cell>
                </list>
            </div>
        </wxc-popup>
    </div>
</template>

<script>
import IHeader from '@/components/header'
import Label from '@/components/label'
import Radio from '@/components/radio'
import Question from '@/components/question'
import { fileUpload } from '@/api/common'
import Uploader from '@/components/imageUpload'
import {validatenull} from '@/util/validate'
import {storeOtherType, goodsTypeTree} from '@/api/store'
import {priceUnit, XiongBeiDianLeiBie, gangQuanLeiBie, baoZhuangDiaoPaiType, baoZhuangZhiXiangType, baoZhuangDangZhiType, baoZhuangSuLiaoType, baoZhuangShangBiaoType, mianLiaoYuan, fuliaocaizhi, getInfo, editpublishGood, publishGood, baoZhuangCaizhi, xiongBeiLeibie, zhiDaiLeibie, laLianLeibie, huaBinaLeibie, songJinDaiLeibie, suSheGoodType, yinHuaGoodType, tiHuaGoodType, liBuGoodType, fuLiaoGoodType, xiongBeiGoodType, kouLeiGoodType, baoZhuangGoodType, otherGoodType, yinHuaGoodLeibie, liBuGoodLeibie} from '@/api/good'
import {weaveProcess, color, glossiness, componentProportion, widthClass, cupThickness} from '@/api/user'
import Nat from 'natjs'
import {WxcPopup} from 'weex-ui'
const modal = weex.requireModule('modal')
export default {
  name: 'publishGood',
  data () {
    return {
      describeInfo: '', // 描述信息
      topPicture: '', // 主图
      imageIndex: 0, // 图片下标
      goodsName: '', // 商品名称
      actulprice: '', // 商品价格
      discountPrice: '', // 折扣价格
      kucun: '', // 商品库存
      address: '', // 工厂地址
      artNo: '', // 货号
      sliderProcessData: '', // 拉头工艺
      otherLeibie: '',
      productionProcess: '', // 生产工艺
      otherColorChoose: '', // 其他颜色
      specificationModel: '', // 生产工艺
      thickness: '', // 厚度
      otherParam: '',
      flowerHigh: '',
      patchMaterial: '',
      choosesize: '',
      pantoneNum: '',
      otherYarn: '',
      weightNum: '',
      flowerSize: '',
      breadth: '',
      // goodsNo: '',
      laLianCiCunContent: '', // 拉链尺寸
      companyType: '请选择', // 企业类型
      typeSelectShow: false, // 商品类目
      priceUnit: '请选择单位',
      buliaoType: '请选择',
      childrenType: '请选择',
      goodFenLeiText: '请选择',
      goodtypeText: '请选择',
      colortypeText: '请选择',
      guigeText: '请选择',
      lightText: '请选择',
      yuanLiaoText: '请选择',
      chengFenText: '请选择',
      canshuText: '请选择',
      caiZhiText: '请选择',
      lanMuText: '去设置',
      baozhuangText: '请选择',
      widthText: '请选择',
      beiXingText: '请选择',
      detail: '',
      typeSelectPriceUnitShow: false, // 商品价格单位
      typeBuLiaoSelectShow: false,
      typeChildrenSelectShow: false,
      guigeSettingShow: false,
      GoodSelectShow: false,
      GoodsTypeShow: false,
      ColorTypeShow: false,
      lightTypeShow: false,
      YuanliaoShow: false,
      chengFenShow: false,
      canshuShow: false,
      lanmuShow: false,
      widthShow: false,
      caiZhiShow: false,
      beiXingShow: false,
      laliancicun: false, // 拉链尺寸
      baozhuangShow: false, // 包装材料材质
      otherleibieShow: false, // 其他类别的展示
      chengbenbiliShow: true,
      shengchangongyi: false, // 生产工艺
      houduzhanshi: false, // 厚度
      realSceneTip: false, // 实景图片提示
      leibieShow: true, // 商品类别的显隐
      businessLicenseType: '1',
      xianHuoType: 1,
      num: 0,
      xuanzewidth: '',
      baoZhuang: false,
      goodListData: {}, // 修改发布信息
      GoodList: [{'description': '推荐转专区'}, {'description': '活动专区'}, {'description': '布料'}, {'description': '里布'}],
      xianHuoRadioList: [{name: '现货', type: 1}, {name: '定制', type: 2}],
      imageObj: [], // 图片地址
      priceUnitList: [], // 单位列表
      buLiaoShow: false, // 是否展示布料类型
      GoodLeiMuList: [], // 商品类目list
      goodChildList: [], // 商品子类目列表
      buLiaoList: [], // 布料类表
      radioList: [], // 精编工艺
      radioList1: [], // 拉头工艺
      radioList2: [], // 生产工艺
      colorList: [], // 商品色系
      glossinessList: [], // 光泽度列表
      rawYarnList: [], // 原料纱织
      componentProportionList: [], // 弹性分类
      widthClassList: [], // 宽度分类
      materialList: [], // 材质分类
      baozhuangList: [], // 包装材料
      beiXingList: [], // 杯型厚度分类
      otherRawYarn: false, // 其他原料纱织不显示
      qitayanse: false, // 其他颜色默认不显示
      suSheShangPinList: [], // 素色商品分类
      goodTypeList: [], // 商品类别分类
      mianliaoShow: false, // 原料纱织的显影
      yinHua: false, // 花型尺寸的显影
      caizhi: false, // 材质的显隐
      widthType: false, // 宽度分类显隐
      tanxingShow: false, // 弹性
      guigeShow: false, // 规格尺寸显隐
      tiebucaizhi: false, // 贴布材质
      bianzhigongyi: false, // 精编工艺
      pantongsehao: false, // 潘通色号
      fukuan: false, // 幅宽
      guangzedu: false, // 光泽度
      hanjiaoliang: false, // 含胶量
      qitacanshu: false, // 其他参数
      huagao: false, // 花高
      cicun: false, // 尺寸
      kezhong: false, // 克重
      guigexinghao: false, // 规格型号
      canshushezhi: true, // 商品参数设置
      gongchangdizhi: false, // 工厂地址
      widthzhanshi: false, // 宽度的显影
      color: '', // 参数 颜色
      goodsCType: '', // 商品分类value
      goodsDType: '', // 商品类别
      rawYarn: '', // 原来纱织
      width: '', // 宽度
      glossiness: '', // 光泽度
      weaveProcess: '', // 编织工艺
      elasticDegree: '', // 弹力程度
      widthClass: '', // 宽度分类
      cupThickness: '', // 杯型厚度
      wrapperMaterial: '', // 包装材质id
      material: '', // 材质
      atype: '', // 参数一级标题
      btype: '', // 参数 二级标签
      ctype: '' // 参数 三级标签
    }
  },
  methods: {
    handleSelectType () { // 选择企业类型
      const that = this
      that.typeSelectShow = true
    },
    chooseThisEnterprise (item) { // 选中类型后
      const that = this
      that.companyType = item.description
      that.closeTypeDialog()
    },
    handleSelectBuliaoType () {
      this.typeBuLiaoSelectShow = true // 布料选择
    },
    handleSelectChildredType (item) {
      this.childrenType = item.description
      this.typeChildrenSelectShow = true
    },
    closeTypeDialog () { // 关闭类型选择弹窗
      this.typeSelectShow = false
    },
    closeBuLiaoTypeDialog () {
      this.typeBuLiaoSelectShow = false
    },
    closeChildrenTypeDialog () {
      this.typeChildrenSelectShow = false
    },
    // 价格单位选择展示
    handleSelectPriceUnit () {
      const that = this
      that.typeSelectPriceUnitShow = true
    },
    closePriceUnitShowDialog () {
      const that = this
      that.typeSelectPriceUnitShow = false
    },
    // 单位选择
    choosePriceUnit (item) {
      const that = this
      that.typeSelectPriceUnitShow = false
      that.priceUnit = item.description
      // modal.toast({
      //   message: JSON.stringify(item)
      // })
    },
    guigeSetting () {
      // 规格设置
      const that = this
      that.guigeSettingShow = true
    },
    closeGuiGeDialog () {
      const that = this
      that.guigeSettingShow = false
    },
    handleHasLicense (item) { // 切换精编和纬编
      this.businessLicenseType = item.value
      this.weaveProcess = item.value
    },
    // 规格中商品分类
    goodType () {
      this.GoodSelectShow = true
    },
    closeGoodsDialog () {
      this.GoodsTypeShow = false
    },
    // 商品分类
    goodFenLei () {
      this.GoodsTypeShow = true
    },
    closeGoodTypeDialog () {
      this.GoodSelectShow = false
    },
    // 商品色系
    chooseColor () {
      this.ColorTypeShow = true
    },
    closeColorDialog () {
      this.ColorTypeShow = false
    },
    // 光泽
    chooseLight () {
      this.lightTypeShow = true
    },
    closelightDialog () {
      this.lightTypeShow = false
    },
    // 原料
    chooseYuanLiao () {
      this.YuanliaoShow = true
    },
    closeYuanliaoDialog () {
      this.YuanliaoShow = false
    },
    // 原料
    chooseChengFen () {
      this.chengFenShow = true
    },
    closeChengFenDialog () {
      this.chengFenShow = false
    },
    // 现货定制的选择
    handleXianHuo (item) {
      this.xianHuoType = item.type
    },
    // 参数设置
    canshuSetting () {
      const that = this
      that.canshuShow = true
    },
    closeCanshuDialog () {
      this.canshuShow = false
    },
    chooseBaoZhuang () {
      const that = this
      that.baozhuangShow = true
    },
    // 包装材质
    chooseBaozhuangCaizhi (item) {
      const that = this
      that.baozhuangShow = false
      that.wrapperMaterial = item.value
      that.baozhuangText = item.description
    },
    // 关闭包装材质
    closebaozhuangDialog () {
      this.baozhuangShow = false
    },
    handleRealSceneTip () { // 实景照片提示
      this.realSceneTip = !this.realSceneTip
    },
    handleDeleteImage (inx) { // 删除图片
      const that = this
      that.imageObj.splice(inx, 1)
    },
    handleUploadToppicture () {
      const that = this
      Nat.image.pick({
        limit: 1,
        showCamera: true
      }, (err, ret) => {
        if (err) {
          modal.toast({
            message: '[ERROR] ' + JSON.stringify(err)
          })
          return
        }
        that.loadingShow = true
        let path = ret.paths[0]
        Nat.upload(that.$api.url + fileUpload, {
          path: path
        }, (errs, res) => {
          if (errs) {
            modal.toast({
              message: '[ERROR] ' + JSON.stringify(errs)
            })
            return
          }
          if (res.ok) {
            let result = JSON.parse(res.data)
            that.topPicture = result.data
            that.loadingShow = false
          }
        })
        that.loadingShow = false
      })
    },
    uploadImage (list) { // 上传动作
      const that = this
      if (that.imageIndex >= list.length) {
        return
      }
      that.loadingShow = true
      Nat.upload(that.$api.url + fileUpload, {
        path: list[that.imageIndex]
      }, (errs, res) => {
        if (errs) {
          modal.toast({
            message: '[ERROR] ' + JSON.stringify(errs)
          })
          return
        }
        if (res.ok) {
          let data = JSON.parse(res.data)
          let imageUrl = data.data
          that.imageObj.push(imageUrl)
          that.loadingShow = false
          that.imageIndex++
          that.uploadImage(list)
        }
      })
    },
    handleUploadImage () { // 图片上传
      const that = this
      Nat.image.pick({
        limit: 9,
        showCamera: true
      }, (err, ret) => {
        if (err) {
          modal.toast({
            message: '[ERROR] ' + JSON.stringify(err)
          })
          return
        }
        that.loadingShow = true
        let paths = ret.paths
        that.imageIndex = 0
        that.uploadImage(paths)
      })
    },
    // handleUploadImage () { // 图片上传
    //   const that = this
    //   Nat.image.pick({
    //     limit: 3,
    //     showCamera: true
    //   }, (err, ret) => {
    //     if (err) {
    //       modal.toast({
    //         message: '[ERROR] ' + JSON.stringify(err)
    //       })
    //       return
    //     }
    //     that.loadingShow = true
    //     let paths = ret.paths
    //     paths.forEach((item) => {
    //       Nat.upload(that.$api.url + fileUpload, {
    //         path: item
    //       }, (errs, res) => {
    //         if (errs) {
    //           modal.toast({
    //             message: '[ERROR] ' + JSON.stringify(errs)
    //           })
    //           return
    //         }
    //         if (res.ok) {
    //           let data = JSON.parse(res.data)
    //           let imageUrl = data.data
    //           that.imageObj.push(imageUrl)
    //         }
    //       })
    //     })
    //     that.loadingShow = false
    //   })
    // },
    // 选择商品类目  一级标题
    chooseLeiMu (leimuItem) {
      const that = this
      that.clearParam()
      that.typeSelectShow = false
      that.companyType = '请选择'
      that.buliaoType = '请选择'
      that.childrenType = '请选择'
      that.atype = leimuItem.id
      that.companyType = leimuItem.value
      if (leimuItem.code === '1') {
        that.buLiaoShow = true
        that.mianliaoShow = true
        that.bianzhigongyi = true
        that.fukuan = true
        that.guangzedu = true
        that.kezhong = true
        that.gongchangdizhi = false
        that.buLiaoList = leimuItem.treeList
      } else {
        that.buLiaoShow = false
        that.mianliaoShow = false
        that.goodChildList = leimuItem.treeList
      }
      if (leimuItem.value === '布料') {
        that.widthzhanshi = false
        that.tanxingShow = false
        that.tiebucaizhi = false
        that.bianzhigongyi = true
        that.fukuan = true
        that.chengbenbiliShow = true
        that.qitacanshu = false
        that.hanjiaoliang = false
        that.huagao = false
        that.cicun = false
        that.guigexinghao = false
        that.shengchangongyi = false
        that.baoZhuang = false
        that.laliancicun = false
      }
      if (leimuItem.value === '辅料') {
        that.gongchangdizhi = false
        that.mianliaoShow = false
        that.kezhong = false
        that.yinHua = false
        that.widthzhanshi = false
        that.chengbenbiliShow = false
        that.widthType = false
        that.tanxingShow = false
        that.tiebucaizhi = false
        that.bianzhigongyi = false
        that.pantongsehao = false
        that.fukuan = false
        that.hanjiaoliang = false
        that.qitacanshu = true
        that.huagao = false
        that.cicun = false
        that.guigexinghao = false
        that.shengchangongyi = false
        that.baoZhuang = false
        that.guangzedu = false
        that.houduzhanshi = false
        that.laliancicun = false
        that.$api.get(fuLiaoGoodType, {}, function (res) {
          that.suSheShangPinList = res.data
        })
      }
      if (leimuItem.value === '胸杯') {
        that.leibieShow = true
        that.tiebucaizhi = true
        that.qitacanshu = true
        that.qitacanshu = true
        that.tiebucaizhi = true
        that.shengchangongyi = true
        that.gongchangdizhi = false
        that.mianliaoShow = false
        that.kezhong = false
        that.yinHua = false
        that.widthzhanshi = false
        that.chengbenbiliShow = false
        that.caizhi = false
        that.widthType = false
        that.tanxingShow = false
        that.bianzhigongyi = false
        that.pantongsehao = false
        that.fukuan = false
        that.hanjiaoliang = false
        that.huagao = false
        that.cicun = false
        that.guigexinghao = false
        that.baoZhuang = false
        that.laliancicun = false
        that.$api.get(xiongBeiGoodType, {}, function (res) {
          that.suSheShangPinList = res.data
        })
      }
      if (leimuItem.value === '扣类') {
        that.guigeShow = true
        that.qitacanshu = true
        that.leibieShow = false
        that.gongchangdizhi = false
        that.mianliaoShow = false
        that.kezhong = false
        that.yinHua = false
        that.widthzhanshi = false
        that.chengbenbiliShow = false
        that.caizhi = false
        that.widthType = false
        that.tanxingShow = false
        that.tiebucaizhi = false
        that.bianzhigongyi = false
        that.pantongsehao = false
        that.fukuan = false
        that.hanjiaoliang = false
        that.huagao = false
        that.cicun = false
        that.guigexinghao = false
        that.shengchangongyi = false
        that.baoZhuang = false
        that.leibieShow = false
        that.laliancicun = false
        that.guangzedu = false
        that.$api.get(kouLeiGoodType, {}, function (res) {
          that.suSheShangPinList = res.data
        })
      }
      if (leimuItem.value === '包材') {
        that.guigeShow = true
        that.gongchangdizhi = true
        that.baoZhuang = true
        that.qitacanshu = true
        that.canshushezhi = false
        that.mianliaoShow = false
        that.kezhong = false
        that.yinHua = false
        that.chengbenbiliShow = false
        that.widthzhanshi = false
        that.widthType = false
        that.tanxingShow = false
        that.tiebucaizhi = false
        that.bianzhigongyi = false
        that.pantongsehao = false
        that.fukuan = false
        that.hanjiaoliang = false
        that.huagao = false
        that.cicun = false
        that.guigexinghao = false
        that.shengchangongyi = false
        that.guangzedu = false
        that.laliancicun = false
        that.caizhi = false
        that.leibieShow = false
        that.$api.get(baoZhuangCaizhi, {}, function (res) {
          that.baozhuangList = res.data
        })
      }
      if (leimuItem.value === '其它') {
        that.qitacanshu = true
        that.guigeShow = true
        that.gongchangdizhi = false
        that.mianliaoShow = false
        that.kezhong = false
        that.yinHua = false
        that.widthzhanshi = false
        that.chengbenbiliShow = false
        that.caizhi = false
        that.widthType = false
        that.tiebucaizhi = false
        that.bianzhigongyi = false
        that.pantongsehao = false
        that.fukuan = false
        that.hanjiaoliang = false
        that.huagao = false
        that.cicun = false
        that.shengchangongyi = false
        that.guigexinghao = false
        that.baoZhuang = false
        that.leibieShow = false
        that.laliancicun = false
        that.tanxingShow = false
        that.guanhzedu = false
        that.$api.get(otherGoodType, {}, function (res) {
          that.suSheShangPinList = res.data
        })
      }
    },
    // 选择布料 二级标题
    chooseBuLiao (item) {
      const that = this
      that.clearParam()
      // that.buliaoType = '请选择'
      that.childrenType = '请选择'
      that.btype = item.id
      that.typeBuLiaoSelectShow = false
      that.buliaoType = item.value
      // 面料下面的商品类别
      if (item.value === '素色布') {
        that.pantongsehao = true
        that.kezhong = true
        that.fukuan = true
        that.mianliaoShow = true
        that.chengbenbiliShow = true
        that.bianzhigongyi = true
        that.guangzedu = true
        that.cicun = false
        that.shengchangongyi = false
        that.leibieShow = false
        that.hanjiaoliang = false
        that.guigexinghao = false
        that.widthzhanshi = false
        that.qitacanshu = false
        that.huagao = false
        that.tiebucaizhi = false
        that.guigeShow = false
        that.caizhi = false
        that.yinHua = false
        that.baoZhuang = false
        that.widthType = false
        that.shengchangongyi = false
        that.$api.get(suSheGoodType, {}, function (res) {
          that.suSheShangPinList = res.data
        })
        that.$api.get(mianLiaoYuan, {}, function (res) {
          that.rawYarnList = res.data
        })
      }
      if (item.value === '印花布') {
        that.leibieShow = true
        that.kezhong = true
        that.mianliaoShow = true
        that.chengbenbiliShow = true
        that.guangzedu = true
        that.fukuan = true
        that.bianzhigongyi = true
        that.shangpinLieBie = true
        that.yinHua = true
        that.pantongsehao = false
        that.cicun = false
        that.hanjiaoliang = false
        that.guigexinghao = false
        that.widthzhanshi = false
        that.qitacanshu = false
        that.huagao = false
        that.tiebucaizhi = false
        that.guigeShow = false
        that.laliancicun = false
        that.caizhi = false
        that.baoZhuang = false
        that.widthType = false
        that.shengchangongyi = false
        that.$api.get(yinHuaGoodType, {}, function (res) {
          that.suSheShangPinList = res.data
        })
        that.$api.get(yinHuaGoodLeibie, {}, function (res) {
          that.goodTypeList = res.data
        })
        that.$api.get(mianLiaoYuan, {}, function (res) {
          that.rawYarnList = res.data
        })
      }
      if (item.value === '提花布') {
        that.pantongsehao = true
        that.fukuan = true
        that.kezhong = true
        that.mianliaoShow = true
        that.chengbenbiliShow = true
        that.guangzedu = true
        that.bianzhigongyi = true
        that.leibieShow = false
        that.yinHua = false
        that.cicun = false
        that.shengchangongyi = false
        that.tanxingShow = false
        that.hanjiaoliang = false
        that.guigexinghao = false
        that.widthzhanshi = false
        that.qitacanshu = false
        that.huagao = false
        that.guigeShow = false
        that.laliancicun = false
        that.caizhi = false
        that.baoZhuang = false
        that.widthType = false
        that.$api.get(tiHuaGoodType, {}, function (res) {
          that.suSheShangPinList = res.data
        })
        that.$api.get(mianLiaoYuan, {}, function (res) {
          that.rawYarnList = res.data
        })
      }
      if (item.value === '里布') {
        // 商品分类
        that.leibieShow = true
        that.pantongsehao = true
        that.bianzhigongyi = true
        that.fukuan = true
        that.shangpinLieBie = true
        that.chengbenbiliShow = true
        that.guangzedu = true
        that.kezhong = true
        that.mianliaoShow = true
        that.bianzhigongyi = true
        that.cicun = false
        that.yinHua = false
        that.shengchangongyi = false
        that.tanxingShow = false
        that.hanjiaoliang = false
        that.guigexinghao = false
        that.widthzhanshi = false
        that.qitacanshu = false
        that.huagao = false
        that.tiebucaizhi = false
        that.guigeShow = false
        that.$api.get(liBuGoodType, {}, function (res) {
          that.suSheShangPinList = res.data
        })
        // 原料纱织
        that.$api.get(mianLiaoYuan, {}, function (res) {
          that.rawYarnList = res.data
        })
        that.$api.get(liBuGoodLeibie, {}, function (res) {
          that.goodTypeList = res.data
        })
      }
      that.goodChildList = item.treeList
    },
    // 选择商品类目 除面料之外的二级标题
    chooseGoodType (item) {
      const that = this
      // that.goodFenLeiText = ''
      that.GoodsTypeShow = false
      that.goodsCType = item.value
      that.goodFenLeiText = item.description
    },
    // 选择商品子类目
    chooseChildren (item) {
      const that = this
      that.clearParam()
      that.typeChildrenSelectShow = false
      that.childrenType = item.value
      if (item.parentId === that.btype) {
        that.ctype = item.id
        // modal.toast({
        //   message: JSON.stringify('ctype' + that.ctype)
        // })
      } else {
        that.btype = item.id
        // modal.toast({
        //   message: JSON.stringify('btype' + that.btype)
        // })
      }
      if (item.value === '松紧带') {
        that.leibieShow = true
        that.widthzhanshi = true
        that.caizhi = true
        that.tanxingShow = true
        that.qitacanshu = true
        that.hanjiaoliang = false
        that.yinHua = false
        that.cicun = false
        that.kezhong = false
        that.mianliaoShow = false
        that.chengbenbiliShow = false
        that.guangzedu = false
        that.fukuan = false
        that.bianzhigongyi = false
        that.shangpinLieBie = false
        that.pantongsehao = false
        that.guigexinghao = false
        that.huagao = false
        that.tiebucaizhi = false
        that.guigeShow = false
        that.laliancicun = false
        that.baoZhuang = false
        that.widthType = false
        that.shengchangongyi = false
        that.$api.get(songJinDaiLeibie, {}, function (res) {
          that.goodTypeList = res.data
        })
        that.$api.get(fuliaocaizhi, {}, function (res) {
          that.materialList = res.data
        })
      }
      if (item.value === '花边') {
        that.leibieShow = true
        that.widthzhanshi = false
        that.caizhi = true
        that.widthType = true
        that.tanxingShow = true
        that.fukuan = true
        that.huagao = true
        that.kezhong = true
        that.cicun = false
        that.hanjiaoliang = false
        that.qitacanshu = false
        that.yinHua = false
        that.mianliaoShow = false
        that.chengbenbiliShow = false
        that.guangzedu = false
        that.bianzhigongyi = false
        that.shangpinLieBie = false
        that.pantongsehao = false
        that.guigexinghao = false
        that.tiebucaizhi = false
        that.guigeShow = false
        that.laliancicun = false
        that.baoZhuang = false
        that.shengchangongyi = false
        that.$api.get(huaBinaLeibie, {}, function (res) {
          that.goodTypeList = res.data
        })
        that.$api.get(fuliaocaizhi, {}, function (res) {
          that.materialList = res.data
        })
      }
      if (item.value === '橡皮') {
        that.widthzhanshi = true
        that.hanjiaoliang = true
        that.qitacanshu = true
        that.yinHua = false
        that.cicun = false
        that.tanxingShow = false
        that.leibieShow = false
        that.kezhong = false
        that.mianliaoShow = false
        that.chengbenbiliShow = false
        that.guangzedu = false
        that.fukuan = false
        that.bianzhigongyi = false
        that.shangpinLieBie = false
        that.pantongsehao = false
        that.guigexinghao = false
        that.huagao = false
        that.tiebucaizhi = false
        that.guigeShow = false
        that.laliancicun = false
        that.caizhi = false
        that.baoZhuang = false
        that.widthType = false
        that.shengchangongyi = false
      }
      if (item.value === '拉链') {
        that.leibieShow = true
        that.qitacanshu = true
        that.laliancicun = true
        that.caizhi = true
        that.cicun = true
        that.tanxingShow = false
        that.widthzhanshi = false
        that.hanjiaoliang = false
        that.yinHua = false
        that.kezhong = false
        that.mianliaoShow = false
        that.chengbenbiliShow = false
        that.guangzedu = false
        that.fukuan = false
        that.bianzhigongyi = false
        that.shangpinLieBie = false
        that.pantongsehao = false
        that.guigexinghao = false
        that.huagao = false
        that.tiebucaizhi = false
        that.guigeShow = false
        that.baoZhuang = false
        that.widthType = false
        that.shengchangongyi = false
        that.$api.get(laLianLeibie, {}, function (res) {
          that.goodTypeList = res.data
        })
        that.$api.get(fuliaocaizhi, {}, function (res) {
          that.materialList = res.data
        })
      }
      if (item.value === '织带') {
        that.caizhi = true
        that.tanxingShow = true
        that.qitacanshu = true
        that.leibieShow = true
        that.widthzhanshi = true
        that.hanjiaoliang = false
        that.yinHua = false
        that.cicun = false
        that.kezhong = false
        that.mianliaoShow = false
        that.chengbenbiliShow = false
        that.guangzedu = false
        that.fukuan = false
        that.bianzhigongyi = false
        that.shangpinLieBie = false
        that.pantongsehao = false
        that.guigexinghao = false
        that.huagao = false
        that.tiebucaizhi = false
        that.guigeShow = false
        that.laliancicun = false
        that.baoZhuang = false
        that.widthType = false
        that.shengchangongyi = false
        that.$api.get(zhiDaiLeibie, {}, function (res) {
          that.goodTypeList = res.data
        })
        that.$api.get(fuliaocaizhi, {}, function (res) {
          that.materialList = res.data
        })
      }
      if (item.value === '其它' && that.companyType === '辅料') {
        that.tanxingShow = true
        that.qitacanshu = true
        that.guigexinghao = true
        that.caizhi = true
        that.widthzhanshi = false
        that.hanjiaoliang = false
        that.yinHua = false
        that.leibieShow = false
        that.kezhong = false
        that.mianliaoShow = false
        that.chengbenbiliShow = false
        that.guangzedu = false
        that.fukuan = false
        that.bianzhigongyi = false
        that.shangpinLieBie = false
        that.pantongsehao = false
        that.huagao = false
        that.cicun = false
        that.tiebucaizhi = false
        that.guigeShow = false
        that.laliancicun = false
        that.baoZhuang = false
        that.widthType = false
        that.shengchangongyi = false
        that.$api.get(fuliaocaizhi, {}, function (res) {
          that.materialList = res.data
        })
      }
      if (item.value === '胸杯') {
        that.$api.get(xiongBeiLeibie, {}, function (res) {
          that.goodTypeList = res.data
        })
      }
      if (item.value === '钢圈') {
        that.$api.get(gangQuanLeiBie, {}, function (res) {
          that.goodTypeList = res.data
        })
      }
      if (item.value === '胸杯垫') {
        that.$api.get(XiongBeiDianLeiBie, {}, function (res) {
          that.goodTypeList = res.data
        })
      }
      if (item.value === '衣架') {
        that.gongchangdizhi = false
        that.canshushezhi = true
        that.$api.get(baoZhuangGoodType, {}, function (res) {
          that.suSheShangPinList = res.data
        })
      }
      if (item.value === '商标') {
        that.gongchangdizhi = true
        that.$api.get(baoZhuangShangBiaoType, {}, function (res) {
          that.suSheShangPinList = res.data
        })
      }
      if (item.value === '吊牌') {
        that.gongchangdizhi = true
        that.$api.get(baoZhuangDiaoPaiType, {}, function (res) {
          that.suSheShangPinList = res.data
        })
      }
      if (item.value === '塑料袋') {
        that.gongchangdizhi = true
        that.$api.get(baoZhuangSuLiaoType, {}, function (res) {
          that.suSheShangPinList = res.data
        })
      }
      if (item.value === '裆贴') {
        that.gongchangdizhi = true
        that.$api.get(baoZhuangDangZhiType, {}, function (res) {
          that.suSheShangPinList = res.data
        })
      }
      if (item.value === '纸箱') {
        that.gongchangdizhi = true
        that.$api.get(baoZhuangZhiXiangType, {}, function (res) {
          that.suSheShangPinList = res.data
        })
      }
    },
    // 关闭商品类别
    chooseGoodFenLei (item) {
      const that = this
      that.GoodSelectShow = false
      that.goodsDType = item.value
      that.goodtypeText = item.description
      if (item.description === '其它') {
        that.otherleibieShow = true
      } else {
        that.otherleibieShow = false
      }
    },
    // 颜色选择
    chooseColorItem (item) {
      const that = this
      that.ColorTypeShow = false
      that.color = item.value
      that.colortypeText = item.description
      if (item.description === '其它') {
        that.qitayanse = true
      } else {
        that.qitayanse = false
      }
    },
    // 光泽度选择
    chooseLightType (item) {
      const that = this
      that.lightTypeShow = false
      that.glossiness = item.value
      that.lightText = item.description
    },
    // 原料纱织选择
    chooseRawYarnType (item) {
      const that = this
      that.YuanliaoShow = false
      that.rawYarn = item.value
      that.yuanLiaoText = item.description
      if (that.yuanLiaoText === '其他') {
        that.otherRawYarn = true
      } else {
        that.otherRawYarn = false
      }
      that.YuanliaoShow = false
    },
    // 弹性分类
    chooseComponent (item) {
      const that = this
      that.chengFenShow = false
      that.elasticDegree = item.value
      that.chengFenText = item.description
      if (item.description === '其它') {
        that.chengFenShow = true
      } else {
        that.chengFenShow = false
      }
    },
    // 宽度分类
    chooseWidth () {
      const that = this
      that.widthShow = true
    },
    closeWidthDialog () {
      const that = this
      that.widthShow = false
    },
    // 宽度分类选择
    chooseWidthType (item) {
      const that = this
      that.widthShow = false
      that.widthClass = item.value
      that.widthText = item.description
    },
    // 材质
    caiZhiType () {
      const that = this
      that.caiZhiShow = true
    },
    closeCaiZhi () {
      const that = this
      that.caiZhiShow = false
    },
    // 选择材质
    chooseMaterialType (item) {
      const that = this
      that.caiZhiShow = false
      that.material = item.value
      that.caiZhiText = item.description
    },
    // 选择杯型
    chooseBeiXing () {
      const that = this
      that.beiXingShow = true
    },
    closebeiXing () {
      const that = this
      that.beiXingShow = false
    },
    // 选择杯型类型
    chooseBeiXingType (item) {
      const that = this
      that.beiXingShow = false
      that.cupThickness = item.value
      that.beiXingText = item.description
    },
    // 关闭商品参数
    shutUp () {
      const that = this
      that.guigeSettingShow = false
      that.guigeText = '已选择'
      // if (that.colortypeText && that.colortypeText !== '请选择' && that.goodFenLeiText && )
    },
    // 清空所有参数
    clearParam () {
      const that = this
      that.childrenType = '请选择'
      that.address = ''
      that.artNo = ''
      that.sliderProcessData = ''
      that.productionProcess = ''
      that.goodFenLeiText = '请选择'
      that.goodtypeText = '请选择'
      that.colortypeText = '请选择'
      that.rubberContent = ''
      that.specificationModel = ''
      that.xuanzewidth = ''
      that.thickness = ''
      that.otherParam = ''
      that.flowerHigh = ''
      that.patchMaterial = ''
      that.choosesize = ''
      that.laLianCiCunContent = ''
      that.caiZhiText = '请选择'
      that.flowerSize = ''
      that.lightText = '请选择'
      that.yuanLiaoText = '请选择'
      that.pantoneNum = ''
      that.weightNum = ''
      that.breadth = ''
      that.componentProportionData = ''
      that.chengFenText = ''
      that.baozhuangText = '请选择'
      that.widthText = '请选择'
      that.beiXingText = '请选择'
    },
    // 商品发布
    publishGood () {
      const that = this
      let params = {
        goodsName: that.goodsName,
        // goodsNo: that.goodsNo,
        // topPicture: 'http://yyk-upload.oss-cn-shenzhen.aliyuncs.com/app/image/20181031/8199fd22b7074859a313ba996c25944e.jpg',
        price: that.actulprice,
        atype: that.atype,
        btype: that.btype,
        ctype: that.ctype,
        color: that.color,
        priceUnit: that.priceUnit,
        inventory: that.kucun,
        describeInfo: that.describeInfo,
        parameter: {
          goodsCType: that.goodsCType, // 商品分类
          color: that.color,
          otherRawYarn: that.otherYarn,
          otherColor: that.otherColorChoose,
          goodsDType: that.goodsDType,
          buyType: that.xianHuoType,
          width: that.xuanzewidth, // 宽度
          weaveProcess: '', // 编织工艺
          otherParam: that.otherParam, // 其他参数
          glossiness: '', // 光泽度
          elasticDegree: '', // 弹力
          componentProportionData: '', // 成本比例
          flowerSize: '', // 花尺寸
          weightNum: '', // 克重
          rawYarn: '', // 原料纱织
          material: '', // 材质
          widthClass: '', // 宽的分类
          size: '', // 规格尺寸
          patchMaterial: '', // 贴布
          pantoneNum: '', // 潘通色号
          breadth: '', // 幅宽
          wrapperMaterial: '', // 包装材质
          rubberContent: '', // 含胶量
          thickness: '', // 厚度
          flowerHigh: '', // 花高
          sliderProcess: '', // 拉头工艺
          specificationModel: '', // 规格型号
          productionProcess: '', // 生产工艺
          zipperType: '', // 拉链尺寸
          cupThickness: '' // 杯型厚度
        },
        describe: '1、商品价格受原材料和市场趋势影响，最终成交价格以买卖双方确认后的价格为准；2、图片与实际颜色会有误差，以收到货物的实际颜色为准；3、门幅和克重在指定范围内会有差异；',
        address: '',
        discountPrice: that.discountPrice,
        detailImgs: '',
        artNo: that.artNo
      }
      let url = publishGood
      if (!validatenull(that.goodListData)) {
        params.id = that.goodListData.id
        url = editpublishGood
      }
      if (that.companyType === '布料') {
        params.parameter.weight = that.weightNum
        params.parameter.rawYarn = that.rawYarn
        params.parameter.componentProportion = that.componentProportionData
        params.parameter.pantoneNum = that.pantoneNum
        params.parameter.weaveProcess = that.businessLicenseType
        params.parameter.breadth = that.breadth
        params.parameter.glossiness = that.glossiness
        params.parameter.otherParam = ''
      }
      if (that.companyType === '布料' && that.buliaoType === '素色布') {
        params.parameter.goodsDType = ''
        params.parameter.pantoneNum = that.pantoneNum
      }
      if (that.companyType === '布料' && that.buliaoType === '印花布') {
        params.parameter.flowerSize = that.flowerSize
        params.parameter.pantoneNum = ''
      }
      if (that.companyType === '布料' && that.buliaoType === '提花布') {
        params.parameter.goodsDType = ''
        params.parameter.pantoneNum = that.pantoneNum
      }
      if (that.companyType === '辅料') {
        params.parameter.material = that.material
        params.parameter.width = that.xuanzewidth
        params.parameter.elasticDegree = that.elasticDegree
      }
      if (that.companyType === '辅料' && that.childrenType === '橡皮') {
        params.parameter.goodsDType = ''
        params.parameter.material = ''
        params.parameter.elasticDegree = ''
        params.parameter.rubberContent = that.rubberContent
        params.parameter.thickness = that.thickness
      }
      if (that.companyType === '辅料' && that.childrenType === '花边') {
        params.parameter.width = ''
        params.parameter.widthClass = that.widthClass
        params.parameter.breadth = that.breadth
        params.parameter.flowerHigh = that.flowerHigh
        // params.parameter.weight = that.weight
        params.parameter.otherParam = ''
      }
      if (that.companyType === '辅料' && that.childrenType === '织带') {
      }
      if (that.companyType === '辅料' && that.childrenType === '拉链') {
        params.parameter.width = ''
        params.parameter.elasticDegree = ''
        params.parameter.sliderProcess = that.sliderProcessData
        params.parameter.zipperType = that.laLianCiCunContent
      }
      if (that.companyType === '辅料' && that.childrenType === '其它') {
        params.parameter.goodsDType = ''
        params.parameter.width = ''
        params.parameter.specificationModel = that.specificationModel
      }
      if (that.companyType === '胸杯') {
        params.parameter.width = ''
        // params.parameter.weaveProcess = that.weaveProcess
        params.parameter.specificationModel = that.specificationModel
        params.parameter.patchMaterial = that.patchMaterial
        params.parameter.productionProcess = that.productionProcess
        params.parameter.cupThickness = that.cupThickness
      }
      if (that.companyType === '扣类') {
        params.parameter.width = ''
        params.parameter.goodsDType = ''
        params.parameter.elasticDegree = ''
        params.parameter.size = that.choosesize
      }
      if (that.companyType === '包材') {
        params.parameter.goodsDType = ''
        params.parameter.width = ''
        params.parameter.wrapperMaterial = that.wrapperMaterial
        params.parameter.size = that.choosesize
        // params.parameter.material = that.material

        params.parameter.address = that.address
      }
      if (that.companyType === '包材' && that.childrenType === '衣架') {
        params.parameter.address = ''
      }
      if (that.companyType === '其它') {
        params.parameter.width = ''
        params.parameter.goodsDType = ''
        params.parameter.size = that.choosesize
      }
      if (that.topPicture && that.imageObj.length > 0 && that.goodsName && that.actulprice && that.discountPrice && that.kucun && that.companyType && that.childrenType && that.childrenType !== '请选择' && that.goodFenLeiText && that.goodFenLeiText !== '请选择' && that.goodFenLeiText !== '请选择' && that.colortypeText && that.colortypeText !== '请选择') {
        params.topPicture = that.topPicture
        let str = ''
        for (let i = 0; i < that.imageObj.length; i++) {
          str += (that.imageObj[i] + ',')
        }
        str = str.substring(0, str.length - 1)
        params.detailImgs = str
        if (that.companyType === '布料' && that.buliaoType) {
          if (that.lightText && that.lightText !== '请选择' && that.yuanLiaoText && that.yuanLiaoText !== '请选择') {
            if (that.buliaoType === '印花布' || that.buliaoType === '里布') {
              if (that.goodtypeText && that.goodtypeText !== '请选择') {
                that.$api.post(url, params, function (res) {
                  modal.toast({
                    message: '发布成功'
                  })
                  that.$router.push({path: '/store/saleStore', query: {goodsId: res.data}})
                }, function () {}, true)
              } else {
                modal.toast({
                  message: '把必填项填完'
                })
              }
            } else {
              that.$api.post(url, params, function (res) {
                modal.toast({
                  message: '发布成功'
                })
                that.$router.push({path: '/store/saleStore', query: {goodsId: res.data}})
              }, function () {
              }, true)
            }
          } else {
            modal.toast({
              message: '把必填项填完'
            })
          }
        } else if (that.companyType === '辅料') {
          if (that.childrenType === '橡皮') {
            that.$api.post(url, params, function (res) {
              modal.toast({
                message: '发布成功'
              })
              that.$router.push({path: '/store/saleStore', query: {goodsId: res.data}})
            }, function () {
            }, true)
          } else if (that.childrenType === '花边') {
            if (that.widthText && that.widthText !== '请选择' && that.caiZhiText && that.caiZhiText !== '请选择' && that.chengFenText && that.chengFenText !== '请选择' && that.goodtypeText && that.goodtypeText !== '请选择') {
              that.$api.post(url, params, function (res) {
                modal.toast({
                  message: '发布成功'
                })
                that.$router.push({path: '/store/saleStore', query: {goodsId: res.data}})
              }, function () {
              }, true)
            } else {
              modal.toast({
                message: '把必填项填完'
              })
            }
          } else if (that.childrenType === '松紧带') {
            if (that.caiZhiText && that.caiZhiText !== '请选择' && that.chengFenText && that.chengFenText !== '请选择' && that.goodtypeText && that.goodtypeText !== '请选择') {
              that.$api.post(url, params, function (res) {
                modal.toast({
                  message: '发布成功'
                })
                that.$router.push({path: '/store/saleStore', query: {goodsId: res.data}})
              }, function () {
              }, true)
            } else {
              modal.toast({
                message: '把必填项填完'
              })
            }
          } else if (that.childrenType === '织带') {
            if (that.goodtypeText && that.goodtypeText !== '请选择' && that.caiZhiText && that.caiZhiText !== '请选择' && that.chengFenText && that.chengFenText !== '请选择') {
              that.$api.post(url, params, function (res) {
                modal.toast({
                  message: '发布成功'
                })
                that.$router.push({path: '/store/saleStore', query: {goodsId: res.data}})
              }, function () {
              }, true)
            } else {
              modal.toast({
                message: '把必填项填完'
              })
            }
          } else if (that.childrenType === '拉链') {
            if (that.goodtypeText && that.goodtypeText !== '请选择' && that.caiZhiText && that.caiZhiText !== '请选择' && that.sliderProcessData) {
              that.$api.post(url, params, function (res) {
                modal.toast({
                  message: '发布成功'
                })
                that.$router.push({path: '/store/saleStore', query: {goodsId: res.data}})
              }, function () {
              }, true)
            } else {
              modal.toast({
                message: '把必填项填完'
              })
            }
          } else {
            if (that.caiZhiText && that.caiZhiText !== '请选择' && that.specificationModel && that.chengFenText && that.chengFenText !== '请选择') {
              that.$api.post(url, params, function (res) {
                modal.toast({
                  message: '发布成功'
                })
                that.$router.push({path: '/store/saleStore', query: {goodsId: res.data}})
              }, function () {
              }, true)
            } else {
              modal.toast({
                message: '把必填项填完'
              })
            }
          }
        } else if (that.companyType === '胸杯') {
          if (that.goodtypeText && that.goodtypeText !== '请选择' && that.productionProcess && that.beiXingText && that.beiXingText !== '请选择' && that.patchMaterial) {
            that.$api.post(url, params, function (res) {
              modal.toast({
                message: '发布成功'
              })
              that.$router.push({path: '/store/saleStore', query: {goodsId: res.data}})
            }, function () {
            }, true)
          } else {
            modal.toast({
              message: '把必填项填完'
            })
          }
        } else if (that.companyType === '扣类') {
          that.$api.post(url, params, function (res) {
            modal.toast({
              message: '发布成功'
            })
            that.$router.push({path: '/store/saleStore', query: {goodsId: res.data}})
          }, function () {
          }, true)
        } else if (that.companyType === '包材') {
          if (that.baozhuangText && that.baozhuangText !== '请选择') {
            that.$api.post(url, params, function (res) {
              modal.toast({
                message: '发布成功'
              })
              that.$router.push({path: '/store/saleStore', query: {goodsId: res.data}})
            }, function () {
            }, true)
          } else {
            modal.toast({
              message: '把必填项填完'
            })
          }
        } else {
          that.$api.post(url, params, function (res) {
            modal.toast({
              message: '发布成功'
            })
            that.$router.push({path: '/store/saleStore', query: {goodsId: res.data}})
          }, function () {
          }, true)
        }
      } else {
        modal.toast({
          message: '把必填项填完'
        })
      }
    }
  },
  mounted: function () {
    const that = this
    that.$api.get(storeOtherType + '/' + 0, {}, function (res) {
      that.GoodLeiMuList = res.data
    })
    // 价格单位
    that.$api.get(priceUnit, {}, function (res) {
      that.priceUnitList = res.data
    })
    // 精编工艺
    that.$api.get(weaveProcess, {}, function (res) {
      that.radioList = res.data
    })
    // 颜色类别
    that.$api.get(color, {}, function (res) {
      that.colorList = res.data
    })
    // 光泽度获取
    that.$api.get(glossiness, {}, function (res) {
      that.glossinessList = res.data
    })
    // 弹性
    that.$api.get(componentProportion, {}, function (res) {
      that.componentProportionList = res.data
    })
    // 宽度分类
    that.$api.get(widthClass, {}, function (res) {
      that.widthClassList = res.data
    })
    // 杯型厚度
    that.$api.get(cupThickness, {}, function (res) {
      that.beiXingList = res.data
    })
    // 修改商品发布信息
    if (that.$route.query.fabuData) {
      that.goodListData = that.$route.query.fabuData
      if (!validatenull(that.goodListData.atype)) {
        that.atype = that.goodListData.atype
        that.$api.get(goodsTypeTree + '/' + that.atype, {}, function (res) {
          that.companyType = res.data.value
        })
        if (that.atype === '1') {
          that.buLiaoShow = true
          if (!validatenull(that.goodListData.btype)) {
            that.btype = that.goodListData.btype
            that.$api.get(goodsTypeTree + '/' + that.btype, {}, function (res) {
              that.buliaoType = res.data.value
              if (that.buliaoType === '里布') {
                let fenlei = {
                  type: 'inside_cloth',
                  value: that.goodListData.parameter.goodsCType
                }
                that.$api.get(getInfo, fenlei, function (res1) {
                  that.goodFenLeiText = res1.data.description
                })
                let leibie = {
                  type: 'inside_cloth_type',
                  value: that.goodListData.parameter.goodsDType
                }
                that.$api.get(getInfo, leibie, function (res2) {
                  that.goodtypeText = res2.data.description
                })
                that.$api.get(liBuGoodType, {}, function (res) {
                  that.suSheShangPinList = res.data
                })
                // 原料纱织
                that.$api.get(mianLiaoYuan, {}, function (res) {
                  that.rawYarnList = res.data
                })
                that.$api.get(liBuGoodLeibie, {}, function (res) {
                  that.goodTypeList = res.data
                })
                // 控制显隐
                that.leibieShow = true
                that.pantongsehao = true
                that.bianzhigongyi = true
                that.fukuan = true
                that.shangpinLieBie = true
                that.chengbenbiliShow = true
                that.guangzedu = true
                that.mianliaoShow = true
                that.kezhong = true
                that.goodsCType = that.goodListData.parameter.goodsCType
                that.goodsDType = that.goodListData.parameter.goodsDType
              }
              if (that.buliaoType === '素色布') {
                let fenlei = {
                  type: 'shads_cloth',
                  value: that.goodListData.parameter.goodsCType
                }
                that.$api.get(getInfo, fenlei, function (res1) {
                  that.goodFenLeiText = res1.data.description
                })
                that.$api.get(suSheGoodType, {}, function (res) {
                  that.suSheShangPinList = res.data
                })
                that.$api.get(mianLiaoYuan, {}, function (res) {
                  that.rawYarnList = res.data
                })
                // 控制显隐
                that.pantongsehao = true
                that.bianzhigongyi = true
                that.fukuan = true
                that.chengbenbiliShow = true
                that.shangpinLieBie = true
                that.guangzedu = true
                that.mianliaoShow = true
                that.kezhong = true
                that.leibieShow = false
                that.goodsCType = that.goodListData.parameter.goodsCType
              }
              if (that.buliaoType === '印花布') {
                let fenlei = {
                  type: 'print_face_cloth',
                  value: that.goodListData.parameter.goodsCType
                }
                that.$api.get(getInfo, fenlei, function (res1) {
                  that.goodFenLeiText = res1.data.description
                })
                let leibie = {
                  type: 'printing_cloth_type',
                  value: that.goodListData.parameter.goodsDType
                }
                that.$api.get(getInfo, leibie, function (res2) {
                  that.goodtypeText = res2.data.description
                })
                that.$api.get(yinHuaGoodType, {}, function (res) {
                  that.suSheShangPinList = res.data
                })
                that.$api.get(yinHuaGoodLeibie, {}, function (res) {
                  that.goodTypeList = res.data
                })
                that.$api.get(mianLiaoYuan, {}, function (res) {
                  that.rawYarnList = res.data
                })
                // 控制显隐
                that.yinHua = true
                that.bianzhigongyi = true
                that.fukuan = true
                that.chengbenbiliShow = true
                that.shangpinLieBie = true
                that.guangzedu = true
                that.mianliaoShow = true
                that.kezhong = true
                that.pantongsehao = false
                that.goodsCType = that.goodListData.parameter.goodsCType
                that.goodsDType = that.goodListData.parameter.goodsDType
              }
              if (that.buliaoType === '提花布') {
                let fenlei = {
                  type: 'jacquard_face_cloth',
                  value: that.goodListData.parameter.goodsCType
                }
                that.$api.get(getInfo, fenlei, function (res1) {
                  that.goodFenLeiText = res1.data.description
                })
                that.$api.get(tiHuaGoodType, {}, function (res) {
                  that.suSheShangPinList = res.data
                })
                that.$api.get(mianLiaoYuan, {}, function (res) {
                  that.rawYarnList = res.data
                })
                that.goodsCType = that.goodListData.parameter.goodsCType
              }
            })
            if (!validatenull(that.goodListData.ctype)) {
              that.ctype = that.goodListData.ctype
              that.$api.get(goodsTypeTree + '/' + that.ctype, {}, function (res) {
                that.childrenType = res.data.value
              })
            }

            // 控制显影
            that.pantongsehao = true
            that.bianzhigongyi = true
            that.fukuan = true
            that.chengbenbiliShow = true
            that.shangpinLieBie = true
            that.guangzedu = true
            that.mianliaoShow = true
            that.kezhong = true
          }
        } else {
          that.btype = that.goodListData.btype
          that.atype = that.goodListData.atype
          that.$api.get(goodsTypeTree + '/' + that.btype, {}, function (res) {
            that.childrenType = res.data.value
            if (that.atype === '3') {
              that.$api.get(fuLiaoGoodType, {}, function (res) {
                that.suSheShangPinList = res.data
              })
              let fenlei = {
                type: 'accessory',
                value: that.goodListData.parameter.goodsCType
              }
              that.$api.get(getInfo, fenlei, function (res1) {
                that.goodFenLeiText = res1.data.description
              })
              that.goodsCType = that.goodListData.parameter.goodsCType
              if (that.childrenType === '松紧带') {
                let leibie = {
                  type: 'elastic_type',
                  value: that.goodListData.parameter.goodsDType
                }
                that.$api.get(getInfo, leibie, function (res2) {
                  that.goodtypeText = res2.data.description
                })
                that.$api.get(songJinDaiLeibie, {}, function (res) {
                  that.goodTypeList = res.data
                })
                that.$api.get(fuliaocaizhi, {}, function (res) {
                  that.materialList = res.data
                })
                // 控制显影
                that.leibieShow = true
                that.widthzhanshi = true
                that.caizhi = true
                that.tanxingShow = true
                that.qitacanshu = true
                that.chengbenbiliShow = false
                that.goodsDType = that.goodListData.parameter.goodsDType
              }
              if (that.childrenType === '其它') {
                that.$api.get(fuliaocaizhi, {}, function (res) {
                  that.materialList = res.data
                })
                that.caizhi = true
                that.tanxingShow = true
                that.qitacanshu = true
                that.guigexinghao = true
                that.leibieShow = false
                that.chengbenbiliShow = false
              }
              if (that.childrenType === '橡皮') {
                that.$api.get(laLianLeibie, {}, function (res) {
                  that.goodTypeList = res.data
                })
                that.$api.get(fuliaocaizhi, {}, function (res) {
                  that.materialList = res.data
                })
                that.widthzhanshi = true
                that.hanjiaoliang = true // 厚度 含胶量
                that.qitacanshu = true
                that.chengbenbiliShow = false
              }
              if (that.childrenType === '花边') {
                let leibie = {
                  type: 'lace_type',
                  value: that.goodListData.parameter.goodsDType
                }
                that.$api.get(getInfo, leibie, function (res2) {
                  that.goodtypeText = res2.data.description
                })
                that.$api.get(huaBinaLeibie, {}, function (res) {
                  that.goodTypeList = res.data
                })
                that.$api.get(fuliaocaizhi, {}, function (res) {
                  that.materialList = res.data
                })
                that.leibieShow = true
                that.huagao = true
                that.caizhi = true
                that.kezhong = true
                that.fukuan = true
                that.tanxingShow = true
                that.widthType = true
                that.chengbenbiliShow = false
                that.goodsDType = that.goodListData.parameter.goodsDType
              }
              if (that.childrenType === '织带') {
                let leibie = {
                  type: 'ribbon_type',
                  value: that.goodListData.parameter.goodsDType
                }
                that.$api.get(getInfo, leibie, function (res2) {
                  that.goodtypeText = res2.data.description
                })
                that.$api.get(zhiDaiLeibie, {}, function (res) {
                  that.goodTypeList = res.data
                })
                that.$api.get(laLianLeibie, {}, function (res) {
                  that.materialList = res.data
                })
                that.leibieShow = true
                that.widthzhanshi = true
                that.caizhi = true
                that.tanxingShow = true
                that.qitacanshu = true
                that.chengbenbiliShow = false
                that.goodsDType = that.goodListData.parameter.goodsDType
              }
              if (that.childrenType === '拉链') {
                let leibie = {
                  type: 'zipper_type',
                  value: that.goodListData.parameter.goodsDType
                }
                that.$api.get(getInfo, leibie, function (res2) {
                  that.goodtypeText = res2.data.description
                })
                that.$api.get(laLianLeibie, {}, function (res) {
                  that.goodTypeList = res.data
                })
                that.$api.get(fuliaocaizhi, {}, function (res) {
                  that.materialList = res.data
                })
                let laliancaizhi = {
                  type: 'accessory_material',
                  value: that.goodListData.parameter.material
                }
                that.$api.get(getInfo, laliancaizhi, function (res1) {
                  that.caiZhiText = res1.data.description
                })
                that.leibieShow = true
                that.caizhi = true
                that.qitacanshu = true
                that.laliancicun = true
                that.cicun = true
                that.chengbenbiliShow = false
                that.goodsDType = that.goodListData.parameter.goodsDType
              }
            }
            if (that.goodListData.atype === '4') {
              that.$api.get(xiongBeiGoodType, {}, function (res) {
                that.suSheShangPinList = res.data
              })
              that.$api.get(xiongBeiLeibie, {}, function (res) {
                that.goodTypeList = res.data
              })
              let fenlei = {
                type: 'thoracic_cup',
                value: that.goodListData.parameter.goodsCType
              }
              that.$api.get(getInfo, fenlei, function (res1) {
                that.goodFenLeiText = res1.data.description
              })
              let leibie = {
                type: 'thoracic_cup_type',
                value: that.goodListData.parameter.goodsDType
              }
              that.$api.get(getInfo, leibie, function (res2) {
                that.goodtypeText = res2.data.description
              })
              that.leibieShow = true
              that.tiebucaizhi = true
              that.qitacanshu = true
              that.shengchangongyi = true
              that.chengbenbiliShow = false
              that.goodsCType = that.goodListData.parameter.goodsCType
              that.goodsDType = that.goodListData.parameter.goodsDType
            }
            if (that.goodListData.atype === '6') {
              that.goodsCType = that.goodListData.parameter.goodsCType
              that.$api.get(kouLeiGoodType, {}, function (res) {
                that.suSheShangPinList = res.data
              })
              let fenlei = {
                type: 'fastener_type',
                value: that.goodListData.parameter.goodsCType
              }
              that.$api.get(getInfo, fenlei, function (res1) {
                that.goodFenLeiText = res1.data.description
              })
              that.guigeShow = true
              that.qitacanshu = true
              that.leibieShow = false
              that.chengbenbiliShow = false
            }
            if (that.goodListData.atype === '7') {
              that.$api.get(baoZhuangGoodType, {}, function (res) {
                that.suSheShangPinList = res.data
              })
              that.$api.get(baoZhuangCaizhi, {}, function (res) {
                that.baozhuangList = res.data
              })
              let baozhuangType = {
                type: 'wrapper_texture',
                value: that.goodListData.parameter.wrapperMaterial
              }
              that.$api.get(getInfo, baozhuangType, function (res2) {
                that.baozhuangText = res2.data.description
              })
              let fenlei = {
                type: 'wrapper_material',
                value: that.goodListData.parameter.goodsCType
              }
              that.$api.get(getInfo, fenlei, function (res1) {
                that.goodFenLeiText = res1.data.description
              })
              that.guigeShow = true
              that.qitacanshu = true
              that.baoZhuang = true
              that.leibieShow = false
              that.chengbenbiliShow = false
              that.goodsCType = that.goodListData.parameter.goodsCType
            }
            if (that.goodListData.atype === '8') {
              that.$api.get(otherGoodType, {}, function (res) {
                that.suSheShangPinList = res.data
              })
              let fenlei = {
                type: 'other_type',
                value: that.goodListData.parameter.goodsCType
              }
              that.$api.get(getInfo, fenlei, function (res1) {
                that.goodFenLeiText = res1.data.description
              })
              that.guigeShow = true
              that.qitacanshu = true
              that.leibieShow = false
              that.chengbenbiliShow = false
              that.goodsCType = that.goodListData.parameter.goodsCType
            }
          })
        }
      }
      if (that.goodListData.goodsName && that.goodListData.goodsName.length > 0) {
        that.goodsName = that.goodListData.goodsName
      }
      that.describeInfo = that.goodListData.describeInfo
      that.topPicture = that.goodListData.topPicture
      // that.imageObj.push(that.goodListData.topPicture)
      if (that.goodListData.detailImgs) {
        that.imageObj = that.goodListData.detailImgs.split(',')
      }
      if (that.goodListData.price) {
        that.actulprice = that.goodListData.price
      }
      if (that.goodListData.discountPrice) {
        that.discountPrice = that.goodListData.discountPrice
      }
      if (that.goodListData.priceUnit) {
        that.priceUnit = that.goodListData.priceUnit
      }
      if (that.goodListData.inventory) {
        that.kucun = that.goodListData.inventory
      } else {
        that.kucun = ''
      }
      if (that.goodListData.parameter.flowerSize) {
        that.flowerSize = that.goodListData.parameter.flowerSize
      } else {
        that.flowerSize = ''
      }
      if (that.goodListData.address && that.goodListData.address.length > 0) {
        that.address = that.goodListData.address
      }
      if (that.goodListData.parameter.size) {
        that.choosesize = that.goodListData.parameter.size
      } else {
        that.choosesize = ''
      }
      if (that.goodListData.artNo && that.goodListData.artNo.length > 0) {
        that.artNo = that.goodListData.artNo
      } else {
        that.artNo = ''
      }
      if (that.goodListData.parameter.zipperType) {
        that.laLianCiCunContent = that.goodListData.parameter.zipperType
      } else {
        that.laLianCiCunContent = ''
      }
      if (that.goodListData.parameter.weaveProcess && that.goodListData.parameter.weaveProcess.length > 0) {
        that.businessLicenseType = that.goodListData.parameter.weaveProcess
      }
      if (that.goodListData.parameter.sliderProcess && that.goodListData.parameter.sliderProcess.length > 0) {
        that.sliderProcessData = that.goodListData.parameter.sliderProcess
      } else {
        that.sliderProcessData = ''
      }
      if (that.goodListData.parameter.productionProcess && that.goodListData.parameter.productionProcess.length > 0) {
        that.productionProcess = that.goodListData.parameter.productionProcess
      }
      if (that.goodListData.parameter.otherRawYarn) {
        that.otherYarn = that.goodListData.parameter.otherRawYarn
      }
      if (that.goodListData.parameter.otherColor && that.goodListData.parameter.otherColor.length > 0) {
        that.otherColorChoose = that.goodListData.parameter.otherColor
      }
      if (that.goodListData.parameter.rubberContent && that.goodListData.parameter.rubberContent.length > 0) {
        that.rubberContent = that.goodListData.parameter.rubberContent
      } else {
        that.rubberContent = ''
      }
      if (that.goodListData.parameter.specificationModel && that.goodListData.parameter.specificationModel.length > 0) {
        that.specificationModel = that.goodListData.parameter.specificationModel
      } else {
        that.specificationModel = ''
      }
      if (that.goodListData.parameter.weight) {
        that.weightNum = that.goodListData.parameter.weight
      } else {
        that.weightNum = ''
      }
      if (that.goodListData.parameter.pantoneNum) {
        that.pantoneNum = that.goodListData.parameter.pantoneNum
      } else {
        that.pantoneNum = ''
      }
      if (that.goodListData.parameter.componentProportion) {
        that.componentProportionData = that.goodListData.parameter.componentProportion
      } else {
        that.componentProportionData = ''
      }
      if (that.goodListData.parameter.breadth) {
        that.breadth = that.goodListData.parameter.breadth
      } else {
        that.breadth = ''
      }
      if (that.goodListData.parameter.otherParam) {
        that.otherParam = that.goodListData.parameter.otherParam
      } else {
        that.otherParam = ''
      }
      if (that.goodListData.parameter.thickness) {
        that.thickness = that.goodListData.parameter.thickness
      } else {
        that.thickness = ''
      }
      if (that.goodListData.parameter.patchMaterial) {
        that.patchMaterial = that.goodListData.parameter.patchMaterial
      } else {
        that.patchMaterial = ''
      }
      if (that.goodListData.parameter.flowerHigh) {
        that.flowerHigh = that.goodListData.parameter.flowerHigh
      } else {
        that.flowerHigh = ''
      }
      if (that.goodListData.color && that.goodListData.color.length > 0) {
        that.color = that.goodListData.color
        let colorparams = {
          value: that.goodListData.color,
          type: 'color'
        }
        that.$api.get(getInfo, colorparams, function (res) {
          that.colortypeText = res.data.description
        })
      }
      if (that.goodListData.parameter.cupThickness) {
        that.cupThickness = that.goodListData.parameter.cupThickness
        let beiXing = {
          value: that.goodListData.parameter.cupThickness,
          type: 'cup_thickness'
        }
        that.$api.get(getInfo, beiXing, function (res) {
          that.beiXingText = res.data.description
        })
      }
      if (that.goodListData.parameter.elasticDegree) {
        that.elasticDegree = that.goodListData.parameter.elasticDegree
        let tanxingtype = {
          type: 'elastic_degree',
          value: that.goodListData.parameter.elasticDegree
        }
        that.$api.get(getInfo, tanxingtype, function (res) {
          that.chengFenText = res.data.description
        })
      }
      if (that.goodListData.parameter.glossiness) {
        that.glossiness = that.goodListData.parameter.glossiness
        let glossinesstype = {
          type: 'glossiness',
          value: that.goodListData.parameter.glossiness
        }
        that.$api.get(getInfo, glossinesstype, function (res) {
          that.lightText = res.data.description
        })
      }
      if (that.goodListData.parameter.rawYarn) {
        that.rawYarn = that.goodListData.parameter.rawYarn
        let rawYarntype = {
          type: 'fabric_raw_yarn',
          value: that.goodListData.parameter.rawYarn
        }
        that.$api.get(getInfo, rawYarntype, function (res) {
          that.yuanLiaoText = res.data.description
        })
      }
      if (that.goodListData.parameter.widthClass) {
        that.widthClass = that.goodListData.parameter.widthClass
        let widthClasstype = {
          type: 'width_class',
          value: that.goodListData.parameter.widthClass
        }
        that.$api.get(getInfo, widthClasstype, function (res) {
          that.widthText = res.data.description
        })
      }
      if (that.goodListData.parameter.width) {
        that.xuanzewidth = that.goodListData.parameter.width
      }
      if (that.goodListData.parameter.material) {
        that.material = that.goodListData.parameter.material
        let caizhitype = {
          type: 'fabric_material',
          value: that.goodListData.parameter.material
        }
        that.$api.get(getInfo, caizhitype, function (res) {
          that.caiZhiText = res.data.description
        })
      }
      if (that.goodListData.parameter.wrapperMaterial) {
        that.wrapperMaterial = that.goodListData.parameter.wrapperMaterial
        let wraptype = {
          type: 'wrapper_material',
          value: that.goodListData.parameter.wrapperMaterial
        }
        that.$api.get(getInfo, wraptype, function (res) {
          that.baozhuangText = res.data.description
        })
      }
    }
  },
  components: {
    IHeader,
    Label,
    WxcPopup,
    Radio,
    Question,
    Uploader
  }
}
</script>

<style scoped>
    .infomation-content {
        padding-top: 88px;
        background-color: #f5f5f5;
    }

    .basic-infomation {
        background-color: #fff;
    }

    .flex_row {
        flex-direction: row;
    }

    .border-bottom-ebebeb {
        border-bottom-width: 1px;
        border-bottom-style: solid;
        border-bottom-color: #cecece;
    }

    .company {
        width: 480px;
        margin-bottom: 8px;
        font-size: 28px;
        line-height: 40px;
    }

    .handleChoose {
        align-items: center;
    }

    .choose-word {
        font-size: 26px;
    }

    .arrow_right_small {
        width: 27px;
        height: 28px;
        margin-left: 16px;
    }

    .item-height {
        height: 88px;
        line-height: 88px;
    }

    .info-list {
        padding-left: 24px;
        padding-right: 24px;
    }

    .info-cell {
        justify-content: space-between;
    }

    .titleInput {
        height: 88px;
        line-height: 88px;
        padding-left: 24px;
        padding-right: 24px;
    }

    .ipt {
        height: 88px;
        line-height: 88px;
        font-size: 28px;
    }

    .shuru {
        flex: 1;
        text-align: right;
        font-size: 28px;
    }

    .inputWrap {
        flex: 1;
    }

    .marLeft {
        margin-left: 27px;
    }

    .enterprise-list {
        min-height: 700px;
        margin-top: 88px;
    }

    .enterprise-item {
        padding-left: 24px;
        padding-right: 24px;
    }

    .enterprise-name {
        font-size: 26px;
    }

    .radioWrap {
        flex-direction: row;
        justify-content: flex-end;
    }

    .radioItem {
        margin-left: 60px;
    }

    .specialContent {
        width: 655px;
        padding-top: 24px;
        padding-left: 24px;
        padding-bottom: 24px;
        padding-right: 24px;
        background-color: rgb(235, 235, 235);
        border-radius: 20px;
    }
    .describeInfo {
        width: 655px;
        height: 200px;
        padding-top: 24px;
        padding-left: 24px;
        padding-bottom: 24px;
        padding-right: 24px;
        border-width: 1px;
        border-style: solid;
        border-color: #ebebeb;
        color: rgb(70, 70, 70);
        font-size: 28px;
    }

    .specialText {
        font-size: 28px;
        color: rgb(70, 70, 70);
        font-family: medium
    }
    .wrapContent{
        position: fixed;
        top:88px;
        bottom: 0;
        left: 0;
        right: 0;
    }
    .special{
        flex-direction: row;
        justify-content: center;
    }
    .confirm-btn{
        margin-top:98px;
        margin-bottom:90px;
        flex-direction: row;
        justify-content: center;
    }
    .btn{
        color:#Fff;
        font-size:30px;
        font-family: medium;
        width:605px;
        height:60px;
        background-image: linear-gradient(to right, #2b3040, #7d88a4);
        line-height: 60px;
        text-align: center;
        border-radius:10px;
    }
    .canshuCon{
        padding-right: 25px;
        padding-left: 25px;
        margin-top: 88px;
    }
    .canshuItem{
        flex-direction: column;
        padding-top:30px;
    }
    .canshuTitle{
       font-size:28px;
        color:rgb(70,70,70);
        margin-bottom:30px;
    }
    .con{
        width:700px;
        background-color:rgb(235,235,235);
        padding-left: 20px;
        padding-right: 20px;
    }
    .context{
        flex: 1;
        border-bottom-color: #fff;
        border-bottom-width: 1px;
        border-bottom-style: solid;
        height: 66px;
        line-height: 66px;
        color:rgb(70,70,70);
        font-size:28px;
        font-weight:bold;
    }
    .num{
        position: absolute;
        bottom: 24px;
        right: 52px;
        color:rgb(206,206,206);
        font-weight:bold;
    }
    .detaiCon{
        width: 700px;
        border-radius: 20px;
    }
    .shangchuan{
        margin-top: 30px;
        margin-bottom: 15px;
    }
    .shuru {
        width: 350px;
        height:88px;

    }
    .margin_left_12 {
        margin-left: 12px;
    }
    .no-single {
        /*padding-top: 20px;*/
        /*padding-bottom: 24px;*/
        flex-wrap: wrap;
        justify-content: flex-start;
    }
    .realSceneTip {
        flex: 1;
        height: 60px;
        margin-top: 12px;
        padding-left: 16px;
        padding-right: 16px;
        border-width: 1px;
        border-style: solid;
        border-color: #ff0f37;
        color: #ff0f37;
        font-size: 22px;
        line-height: 58px;
        border-radius: 4px;
    }
    .image-container {
        width: 702px;
        margin-top: 20px;
    }
    .image-content {
        flex-wrap: wrap;
        margin-right: 12px;
    }
    .margin_right_12 {
        margin-right: 12px;
    }
    .image-box {
        width: 226px;
        height: 226px;
        margin-bottom: 12px;
    }
    .scene-image {
        width: 226px;
        height: 226px;
    }
    .delete-image {
        position: absolute;
        top: 4px;
        right: 4px;
        width: 36px;
        height: 36px;
    }
    .topPicture {
        width: 226px;
        height: 226px;
    }
</style>
